How to test an iOS application on the CarPlay simulator

前端 未结 2 1006
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: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

提交回复
热议问题