ios - iOS CarPlay API 是否公开?如何整合CarPlay?

标签 ios carplay

CarPlay API 是否公开可用?

我们在哪里可以找到编程指南或这些类的引用?

或者它会与来自 AVFoundation 的 Audio 等其他 API 无缝集成吗?

注意事项

  • 这个问题很宽泛,可能会被标记为如此,但请不要以为几乎没有关于该主题的信息,而且很多人在这个阶段会发现它很有用
  • 我住在瑞士,想去 日内瓦 试试演示 我会在 Ferrari 上写的应用程序 lol。

最佳答案

2019 年 10 月更新:
几年后,Apple 开放了他们的 designer guidelinesdeveloper docs在 CarPlay 上。正如其他一些评论中提到的,也可以在您的 Mac 上访问开发人员工具。

从技术上讲,根据您希望与 CarPlay 兼容的应用类型,它需要不同的 API 和框架。例如:

The CarPlay framework is for use by navigation apps only. If you want to add CarPlay support to your audio app, use MPPlayableContentManager. For messaging apps, use SiriKit’s Messaging-related intents to support reading and sending messages in CarPlay through Siri. For VoIP calling apps, use CallKit with SiriKit’s VoIP Calling-related intents to make and answer audio calls on a CarPlay system.

然而,在法律上,仍然是 MFi Program需要 Apple 的申请和批准,您才能获得适当的权限、签名配置文件等,以便将其部署到实际设备上。更不用说将其转换市场了。或者……你可以试试 applying for access manually并解释你的情况。

最后,还有some documentation关于如何启用工具和模拟器以与 CarPlay 配合使用。例如,一小段摘录:

CarPlay is supported by default when you run Simulator. However, you should configure the Simulator with extra options when developing a CarPlay navigation app. To enable extra options, enter the following command in Terminal before launching Simulator: defaults write com.apple.iphonesimulator CarPlayExtraOptions -bool YES.

但除了文档之外,我还可以认真推荐阅读 Flitsmeister blogged about 上的人的内容关于如何在本地机器上启用工具。此外,他们最终获得批准的道路显然是乏味的,而且远非一帆风顺(我不隶属于 Flitsmeister),尽管他们的用例是基于拥有大量用户(±150 万)。提到这一点是为了强调:CarPlay 显然还不适合日常开发人员。


这个问题的日期是 2014 年初。让我用 2016 年年中的答案更新一下:

TL;DR - No, it is not publicly available.

为了获得工具、文档、技术规范甚至许可证本身来为 Carplay 进行开发,您需要注册 Apple 的 MFi 计划

Apple's MFi Program (“Made for iPhone/iPod/iPad”)是面向硬件和软件开发人员的许可计划。这是针对制造商(主要是“批量生产”单位)的特定许可证,与公司的常规开发者帐户相比,它具有额外的优势。这些好处包括硬件组件、工具、文档、技术支持,当然还有您允许专门为这些设备和技术(如 Carplay)开发的许可证。

MFi Enrollment FAQ是一本体面的读物,它使一切都非常清楚。但在您抱有希望之前,请再次注意,它仅适用于制造商。如常见问题解答所述:

Q: Am I eligible to apply for the MFi Manufacturing License if my company does not own a manufacturing facility?

A: No. The MFi Manufacturing License is intended solely for companies that own one or more manufacturing facilities.

有一些异常(exception)。例如,如果您是为客户(制造商)开发 MFi 配件的承包商或工程设计公司。

但基本上来说,它不是针对普通开发者的,而且准入相当严格。简而言之,这意味着 95% 的开发者无法使用 Apple Carplay。

关于ios - iOS CarPlay API 是否公开?如何整合CarPlay?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22372095/

相关文章:

ios - MPPlayableContentDataSource 不调用 contentItemForIdentifier :completionHandler:

ios - 如何在实际设备上调试CarPlay应用

iOS网络问题。 TLS Session缓存漏洞

iOS - 如何翻转 UIButton 的标题?

ios - 我们可以使用 CarPlay 撰写/接收音频信息吗?

ios - 配置文件中缺少 carplay-audio 权利

ios - 启动时应用程序崩溃

ios - UITableView reloadData 最佳实践

ios - Zoomscale UIScrollView 不工作

swiftui - 是否可以使用 SwiftUI 为 CarPlay 进行设计?