CarPlay entitlements crashes Mac app

I am using Xcode 14 and multiplatform app project.

I have received the CarPlay entitlements from Apple and everything works on iOS. However I do have to share the same entitlements.plist file with macOS (multiplatform project uses the same file) and the CarPlay entitlement crashes the Mac app. If I remove those lines from it everything works fine:

<key>com.apple.developer.carplay-audio</key>
<true/>

How to handle this? I have tried to add iphoneos on the end of the key but it keeps crashing even then.

Replies

CarPlay isn’t supported on macOS, so you can’t create a macOS provisioning profile that authorises your use of this entitlement on that platform. You’ll need to use different entitlements for each platform, leaving the CarPlay entitlement out of the macOS one.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"