Post

Replies

Boosts

Views

Activity

Reply to Why do I get a SIGTRAP Exception when opening CarPlay App in real car
@robnotyou Yes. In my app's entitlements I have added com.apple.developer.playable-content (MediaPlayer framework). On the app's provisioning profile, I just noticed today that the entitlements has both: CarPlay audio app (CarPlay + Media Player frameworks)iOS (Dist). Which contains the new CarPlay audio framework entitlement as well as the Media Player entitlement. I'm not sure if this is causing an issue, but I am going to try to test the app with only the MediaPlayer framework entitlement checked in the provisioning profile I also received a crash event in FireBase Crashlytics: Here is the stack trace of the crashed thread. There is some additional information here that the Apple crashlogs didn't have. Crashed: BSXPCCnx:19083:com.apple.CarPlayTemplateUIHostApp.anonymous (BSCnx:client:com.apple.frontboard.workspace-service) 0 FrontBoardServices 0x1a39e13cc -[FBSSceneParameters initWithSpecification:] + 228 1 FrontBoardServices 0x1a39e1dd8 -[FBSSceneParameters initWithXPCDictionary:] + 128 2 BaseBoard 0x198275af4 _BSXPCDecodeObject + 1892 3 BaseBoard 0x1982739c0 _BSXPCDecodeObjectForKey + 268 4 BoardServices 0x1ad695f30 +[BSXPCServiceConnectionProxy decodeArguments:outArgs:fromMessage:forConnection:] + 1608 5 BoardServices 0x1ad693ab0 -[BSXPCServiceConnectionProxy invokeMessage:onTarget:] + 276 6 BoardServices 0x1ad69a994 __63-[BSXPCServiceConnectionEventHandler connection:handleMessage:]_block_invoke + 536 7 BoardServices 0x1ad6b0284 BSXPCServiceConnectionExecuteCallOut + 316 8 BoardServices 0x1ad69a708 -[BSXPCServiceConnectionEventHandler connection:handleMessage:] + 172 9 BoardServices 0x1ad6af668 -[BSXPCServiceConnection _connection_handleMessage:fromPeer:withHandoff:] + 572 10 libdispatch.dylib 0x19385424c _dispatch_call_block_and_release + 32 11 libdispatch.dylib 0x193855db0 _dispatch_client_callout + 20 12 libdispatch.dylib 0x19385d10c _dispatch_lane_serial_drain + 580 13 libdispatch.dylib 0x19385dc90 _dispatch_lane_invoke + 460 14 libdispatch.dylib 0x19385cfd8 _dispatch_lane_serial_drain + 272 15 libdispatch.dylib 0x19385dc90 _dispatch_lane_invoke + 460 16 libdispatch.dylib 0x193867d78 _dispatch_workloop_worker_thread + 708 17 libsystem_pthread.dylib 0x1df711814 _pthread_wqthread + 276 18 libsystem_pthread.dylib 0x1df71876c start_wqthread + 8
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’21
Reply to Why do I get a SIGTRAP Exception when opening CarPlay App in real car
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:
Mar ’21