How to test an iOS application on the CarPlay simulator

前端 未结 2 1007
Happy的楠姐
Happy的楠姐 2021-01-31 12:16

I am trying to develop an iOS application compatible with CarPlay.

According to this post Is iOS CarPlay API Public? How to Integrate CarPlay?, I have to be enrolled wi

相关标签:
2条回答
  • 2021-01-31 12:49

    As of iOS 12 there is now the entitlement of com.apple.developer.carplay-maps for navigation based apps which works in the same way as com.apple.developer.playable-content so you can test your App in the Simulator. You may need to enable the CarPlay simulator with the terminal command defaults write com.apple.iphonesimulator CarPlay -bool YES to get it to show up.

    0 讨论(0)
  • 2021-01-31 12:50

    You don't need to add anything for the SupportExternalAccessoryProtocols key to run a basic CarPlay app in the simulator. This is for declaring protocols for functionality that might be specific to a particular set of head units.

    What you are probably missing is the playable content entitlement. If you don't have an entitlements file, you'll need to create it for your app;-

    Then add a boolean value of YES for the com.apple.developer.playable-content key

    This should now show your app on the CarPlay home screen in the simulator. As you allude, you won't be able to run that app on a physical device unless you can get Apple to add that entitlement to your account

    0 讨论(0)
提交回复
热议问题