I selected the wrong solution, it should be this comment:
Good news. I was able to find out something interesting. Earlier I mentioned that my entitlements file contained com.apple.developer.playable-content meanwhile my provisioning profile entitlement was selected on CarPlay audio app (CarPlay + Media Player frameworks)iOS (Dist).
When changing the CarPlay entitlement file in the app to com.apple.developer.carplay-audio (incorrect entitlement). I was able to reproduce the crash inside of the Xcode simulator. After changing it back to com.apple.developer.playable-content, the app in the simulator still crashed despite cleaning the build folder and deleting derived data and building again. However, it is possible to fix this by deleting the app from the simulator, then building and clean installing it all over again.
This led me to the follow solution:
Change the provisioning profile entitlement to CarPlay audio app (Media Player only)iOS (Dist) and build the app
Delete the app from the device before installing it again
In the CarPlay display, go to Settings (of CarPlay) General Reset to clear the CarPlay dashboard
Which fixed the crashes
Topic:
Programming Languages
SubTopic:
Swift
Tags: