New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to inialize simulated service context with error: (null) #740

haithngn opened this Issue Sep 27, 2017 · 2 comments


None yet
3 participants

haithngn commented Sep 27, 2017

Hi there,
This command is now working on Xcode 8.3.3
xctool -project Haithngn.xcodeproj -scheme HaithngnTests -sdk iphonesimulator run-tests

now, it does not work on Xcode 9 with these error:

`[Info] Loading settings for scheme 'HaithngnTests' ...2017-09-27 15:20:23.671 xctool[908:21081] *** Assertion failure in -[SimulatorInfo init], /tmp/xctool-20170901-19829-1s5ox9o/xctool-0.3.3/xctool/xctool/SimulatorWrapper/SimulatorInfo.m:70
[Info] Loading settings for scheme 'HaithngnTests' ... (1766 ms)

2017-09-27 15:20:23.812 xctool[908:21081] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to inialize simulated service context with error: (null)'
*** First throw call stack:
0 CoreFoundation 0x00007fffb29c82cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffc77e048d objc_exception_throw + 48
2 CoreFoundation 0x00007fffb29cd042 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00007fffb4415be0 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 xctool 0x000000010c8aa6b0 -[SimulatorInfo init] + 398
5 xctool 0x000000010c8986f7 -[RunTestsAction validateWithOptions:xcodeSubjectInfo:errorMessage:] + 263
6 xctool 0x000000010c8927a2 -[Options _validateActionsWithSubjectInfo:errorMessage:] + 246
7 xctool 0x000000010c891b5e -[Options validateAndReturnXcodeSubjectInfo:errorMessage:] + 3364
8 xctool 0x000000010c882a76 -[XCTool run] + 2663
9 xctool 0x000000010c8815ce main + 1208
10 xctool 0x000000010c87c6a4 start + 52
11 ??? 0x0000000000000008 0x0 + 8
libc++abi.dylib: terminating with uncaught exception of type NSException
./ line 1: 908 Abort trap: 6 xctool -project Haithngn.xcodeproj -scheme HaithngnTests -sdk iphonesimulator run-tests`

P/S: Can we list down the available simulators in detail on current Mac Machine ?

@haithngn haithngn closed this Sep 27, 2017


This comment has been minimized.

liuliusc commented Oct 9, 2017

How did you fix this?


This comment has been minimized.

haitaoli commented Nov 6, 2017

@liuliusc I had the same problem with xctool 0.3.2. Upgrading to 0.3.4 fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment