CarPlay NSInvalidArgumentException, unrecognized selector sent to instance

Hi,

I have an EV Charging entitlement and everything works fine. But sometimes I'm getting this crash sporadically and I can't figure out, what the problem is. With this entitlement you only have the CPInterfaceController to push/pop templates. Window parameter is only available if you have an Navigation Entitlement.

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CPTemplateApplicationScene windows]: unrecognized selector sent to instance 0x11be930a0'

*** First throw call stack:

(0x1818950fc 0x19a0e5d64 0x1819720c4 0x184c12b18 0x18182a524 0x181829660 0x104065fe4 0x104092374 0x183f5e368 0x183e842a8 0x183f13de8 0x183e2fe70 0x18413bae4 0x183e679ec 0x183ecacb4 0x183f87b2c 0x183e32474 0x185595794 0x183e96a1c 0x183fcdf1c 0x183e32474 0x185595794 0x185587fb4 0x18559c5dc 0x1855a4ed0 0x18558770c 0x18183d610 0x18180c8f4 0x18180798c 0x18181b468 0x19d3bf38c 0x1841be5d0 0x183f3cf74 0x102e81b78 0x10c685aa4)

libc++abi: terminating with uncaught exception of type NSException

dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CPTemplateApplicationScene windows]: unrecognized selector sent to instance 0x11be930a0'

terminating with uncaught exception of type NSException

Maybe anyone can help.

Best

Hi Paulee, I got the same error when I tried to launch my app on CarPlay, did you find the root cause? Or any tricks to debug?

CarPlay NSInvalidArgumentException, unrecognized selector sent to instance
 
 
Q