Posts

Post not yet marked as solved
2 Replies
2.1k Views
I'm having issues running a CarPlay app in the simulator on an M1 Mac. I have to build the app for x86 (EXCLUDED_ARCHS=arm64) because one of its dependencies doesn't have arm64 simulator support. The app builds and runs well enough on the iPhone simulator, but as soon as I open CarPlay the app has problems. The app is still based on CPApplicationDelegate. It builds and simulates fine on an Intel Mac. On an M1 Mac, it builds and simulates on the iPhone sim, but right after attaching the CarPlay sim, it throws an exception "Application does not implement CarPlay template application lifecycle methods in its scene delegate." In case the error actually was due to the use of CPApplicationTemplate, I updated the app the use SceneDelegate. It gets a bit further, but I'm unable to set any CP templates -- trying to set a template results in an exception like "Exception setting template: Unsupported object <CPMapTemplate: 0x6000001fa340>.... Allowed classes: (null)" I also tried Apple's CoastalRoads app. When building for arm64 on an M1, the app works as it should. When building an x86 sim build (using EXCLUDED_ARCHS=arm64), the app gives the "Application does not implement CarPlay template..." exception. Has anyone else seen this issue? Is it a known problem when running x64 simulator builds on an M1 Mac?
Posted
by jason0x43.
Last updated
.