CarPlay setRootTemplate crashed (Allowed classes: (null)) on simulator and working fine on other system

Getting below crash when run Apple official CarPlay Demo on simulator but working fine in other system.


CarPlayTutorial[18440:282424] *** Terminating app due to uncaught exception  
'NSInvalidArgumentException', reason: 'Unsupported object <CPTabBarTemplate: 
0x600000621170> <identifier: B5E32A00-9E81-4211-893F-4CC5FE7F2812, userInfo: (null), 
tabTitle: (null), tabImage: (null), showsTabBadge: 0> passed to 
setRootTemplate:animated:completion:. Allowed classes: (null)'




Posted on Oct 11, 2022 10:17 PM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Oct 12, 2022 4:53 AM

Got solution on M1 chip system disable Open using Rosetta.


Right click on the Xcode from application folder and select Get Info -> Disable Open using Rosetta option.

Similar questions

2 replies
Sort By: 

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

CarPlay setRootTemplate crashed (Allowed classes: (null)) on simulator and working fine on other system

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.