carplay setRootTemplate crash (Allowed classes: (null))

Solution 1:

I started getting this after switching to a M1 MBP. Does not matter which type of template I try to set as root template. Still works on my old Intel Mac so it seems to be a M1 bug.

EDIT: I FIXED IT!

After skulking around the Apple Dev Forums I found someone with the same problem, but the problem only appeared after adding arm64 to Excluded Architectures.

Excluded Archs

I too had added this to get the Google Places SDK to compile, so removing it was tricky. But Google has released a beta version of the SDK that is compatible with M1, but it needs to be installed manually or via Carthage. I removed the old SDK, removed arm64 from EXCLUDED_ARCHS, installed the beta SDK and it worked! Now I can use the CarPlay Simulator on M1 without errors. Hopefully this helps!