I am unable to launch CarPlay External Display from iOS simulator, because it crashes on launch. I can only see a black screen on the simulator. It started happening around Xcode 11 beta 4 (in beta 3 it was working fine as far as I remember). After a while of the black screen, Crash Report windows pops up. Once I press send it disappears for mere 1minute and reappears. This happens up to the moment I kill the CarPlay External Display.
I shall add that I tried:
- reinstall iOS 13 simulator support
- remove and readd iOS 13 simulator type
- erase the contents of the iPhone simulator I'm trying to launch external display on (so I'm now launching it without any of my apps installed on the iPhone simulator)
- reset iOS simulator
- reset Xcode
- reset MacBook
- update Xcode beta (4->5, 5->6)
Here's my crash report. It's an infinite loop when it shows, and it starts once I try to open CarPlay External Display from Simulator -> Hardware.
How can I bypass the issue so that I can test my app (I cannot install it on the real device yet)?
--- --- ---
Process: CarPlay [23149]
Path: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreServices/CarPlay.app/CarPlay
Identifier: CarPlay
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: launchd_sim [22970]
Responsible: CarPlay [23149]
User ID: 501
Date/Time: 2019-08-27 08:42:20.597 +0200
OS Version: Mac OS X 10.14.5 (18F132)
Report Version: 12
Anonymous UUID: CECC710E-5CF7-DC10-FDA9-BAA149714D79
Sleep/Wake UUID: E47FF9D2-988D-4FCC-981E-400ED75D3DAA
Time Awake Since Boot: 25000 seconds
Time Since Wake: 8800 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid parameter not satisfying: bundle'
terminating with uncaught exception of type NSException
abort() called
CoreSimulator 681.2 - Device: 13.0 iPhone Xr (2DB559D8-5F12-4390-BCB0-00C919F74DFA) - Runtime: iOS 13.0 (17A5565b) - DeviceType: iPhone Xʀ
Application Specific Backtrace 1:
0 CoreFoundation 0x000000010fafcbde __exceptionPreprocess + 350
1 libobjc.A.dylib 0x000000010f96ab20 objc_exception_throw + 48
2 HMFoundation 0x000000010b991c53 -[HMFLocationAuthorization dealloc] + 0
3 CarPlay 0x00000001079f4f30 CarPlay + 167728
4 CarPlay 0x00000001079cee75 CarPlay + 11893
5 CarPlay 0x0000000107a3e3ee CarPlay + 467950
6 CarPlay 0x00000001079df830 CarPlay + 79920
7 CarPlay 0x0000000107a2a1fc CarPlay + 385532
8 CarPlay 0x0000000107a01650 CarPlay + 218704
9 CarPlay 0x0000000107a4c04c CarPlay + 524364
10 CarPlay 0x0000000107a4b5ea CarPlay + 521706
11 CarPlay 0x0000000107a4de53 CarPlay + 532051
12 UIKitCore 0x000000011eaf60bd UIApplicationInstantiateSingleton + 93
13 UIKitCore 0x000000011eaf668c UIApplicationMain + 978
14 libdyld.dylib 0x00000001126a1cf5 start + 1
15 ??? 0x0000000000000001 0x0 + 1
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x0000000112a242c6 __pthread_kill + 10
1 libsystem_pthread.dylib 0x0000000112a77bf1 pthread_kill + 284
2 libsystem_c.dylib 0x00000001127b0a5c abort + 120
3 libc++abi.dylib 0x00000001123df7f8 abort_message + 231
4 libc++abi.dylib 0x00000001123df9c7 demangling_terminate_handler() + 262
5 libobjc.A.dylib 0x000000010f96ad7c _objc_terminate() + 96
6 libc++abi.dylib 0x00000001123ece97 std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x00000001123ec8fe __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 27
8 libc++abi.dylib 0x00000001123ec8c5 __cxa_throw + 113
9 libobjc.A.dylib 0x000000010f96ac44 objc_exception_throw + 340
10 com.apple.HMFoundation 0x000000010b991c53 -[HMFLocationAuthorization initWithBundle:] + 251
11 com.apple.CarPlayApp 0x00000001079f4f30 0x1079cc000 + 167728
12 com.apple.CarPlayApp 0x00000001079cee75 0x1079cc000 + 11893
13 com.apple.CarPlayApp 0x0000000107a3e3ee 0x1079cc000 + 467950
14 com.apple.CarPlayApp 0x00000001079df830 0x1079cc000 + 79920
15 com.apple.CarPlayApp 0x0000000107a2a1fc 0x1079cc000 + 385532
16 com.apple.CarPlayApp 0x0000000107a01650 0x1079cc000 + 218704
17 com.apple.CarPlayApp 0x0000000107a4c04c 0x1079cc000 + 524364
18 com.apple.CarPlayApp 0x0000000107a4b5ea 0x1079cc000 + 521706
19 com.apple.CarPlayApp 0x0000000107a4de53 0x1079cc000 + 532051
20 com.apple.UIKitCore 0x000000011eaf60bd UIApplicationInstantiateSingleton + 93
21 com.apple.UIKitCore 0x000000011eaf668c UIApplicationMain + 978
22 libdyld.dylib 0x00000001126a1cf5 start + 1
Thread 7:: Dispatch queue: com.apple.libtrace.state.block-list
0 libsystem_kernel.dylib 0x0000000112a209de __ulock_wait + 10
1 libdispatch.dylib 0x0000000112482ff4 _dlock_wait + 44
2 libdispatch.dylib 0x0000000112482e53 _dispatch_thread_event_wait_slow + 36
3 libdispatch.dylib 0x000000011248fab1 __DISPATCH_WAIT_FOR_QUEUE__ + 311
4 libdispatch.dylib 0x000000011248f63a _dispatch_sync_f_slow + 199
5 libsystem_trace.dylib 0x000000011297b0d4 ___os_state_request_for_self_block_invoke + 389
6 libdispatch.dylib 0x0000000112481888 _dispatch_call_block_and_release + 12
7 libdispatch.dylib 0x00000001124827f9 _dispatch_client_callout + 8
8 libdispatch.dylib 0x0000000112488566 _dispatch_lane_serial_drain + 707
9 libdispatch.dylib 0x0000000112488fd3 _dispatch_lane_invoke + 443
10 libdispatch.dylib 0x000000011249306c _dispatch_workloop_worker_thread + 626
11 libsystem_pthread.dylib 0x0000000112a74611 _pthread_wqthread + 421
12 libsystem_pthread.dylib 0x0000000112a743fd start_wqthread + 13
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133