CoreSimulator is attempting to unload a stale CoreSimulatorService job.
After build when AppCode attempts to launch the iOS simulator I encounter this error. It even occurs on the latest 3.4 EAP. I've tried uninstalling and reinstalling all the simulators but that didn't help.
/Users/chris/Library/Caches/AppCode34/DerivedData/Test-b3e7b3ca/Build/Products/Staging-iphonesimulator/Test.app
2016-02-19 13:04:25.189 simlauncher[37131:7019249] CoreSimulator is attempting to unload a stale CoreSimulatorService job. Detected Xcode.app relocation or CoreSimulatorService version change. Framework path (/Applications/XCode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework) and version (201.3) does not match existing job path (/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService) and version (201.3).
2016-02-19 13:04:26.228 simlauncher[37131:7019249] Job com.apple.CoreSimulator.CoreSimulatorService exists after SMJobRemove(). This can occur if running sandboxed. jobPath: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService frameworkPath: /Applications/XCode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework
2016-02-19 13:04:26.483 simlauncher[37131:7019249] Failed to locate a valid instance of CoreSimulatorService in the bootstrap. Adding it now.
2016-02-19 13:04:26.567 simlauncher[37131:7019249] *** Assertion failure in -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-201.3/CoreSimulator/SimServiceContext.m:452
2016-02-19 13:04:26.575 simlauncher[37131:7019249] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The loaded com.apple.CoreSimulator.CoreSimulatorService job does not match our expectations: pathOfLoadedJob: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService, our frameworkPath: /Applications/XCode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff908abae2 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff901e4f7e objc_exception_throw + 48
2 CoreFoundation 0x00007fff908ab8ba +[NSException raise:format:arguments:] + 106
3 Foundation 0x00007fffa194088c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
4 CoreSimulator 0x000000010472f3a6 -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid] + 1411
5 CoreSimulator 0x000000010472fc03 -[SimServiceContext connect] + 41
6 CoreSimulator 0x000000010472e8bc -[SimServiceContext initWithConnectionType:] + 949
7 CoreSimulator 0x000000010472e41a +[SimServiceContext simContextWithConnectionType:] + 50
8 CoreSimulator 0x000000010472e3cb __41+[SimServiceContext sharedServiceContext]_block_invoke + 32
9 libdispatch.dylib 0x00007fff96a0433f _dispatch_client_callout + 8
10 libdispatch.dylib 0x00007fff96a04237 dispatch_once_f + 67
11 CoreSimulator 0x000000010472e3a9 +[SimServiceContext sharedServiceContext] + 46
12 CoreSimulator 0x000000010476295e +[SimRuntime supportedRuntimes] + 31
13 DVTiPhoneSimulatorRemoteClient 0x0000000104033092 -[DTiPhoneSimulatorSessionConfig init] + 76
14 simlauncher 0x000000010401e5a0 -[Launcher createConfig] + 37
15 simlauncher 0x000000010401e337 -[Launcher launch] + 182
16 Foundation 0x00007fffa1a55c6f __NSThread__start__ + 1351
17 libsystem_pthread.dylib 0x00007fff9b321c13 _pthread_body + 131
18 libsystem_pthread.dylib 0x00007fff9b321b90 _pthread_body + 0
19 libsystem_pthread.dylib 0x00007fff9b31f375 thread_start + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Process finished with exit code 134
Please sign in to leave a comment.
Looks like you recently renamed Xcode.app to XCode.app (or vice versa), and that confuses the simulator service. Please try renaming it back or rebooting.
Ok so the name of the bundle was Xcode.app, I renamed it to XCode.app and rebooted. Got the same error. I then renamed it back to Xcode.app and rebooted and everything is working now. Thanks!