Background
- I ran into this problem in Xcode 7.3 (7D175) and iOS Simulator 9.3.
- Symptoms were as follows.
- Test Runner starts normally and exits.
- After that, the tested application never starts.
- (if the test application has not been installed, Xcode will also never install the application before starting the test).
- (A side symptom is that the recording also doesn't work for me - I took inspiration from this SO post.)
After 30 seconds, the test expires with:
XCTRunner[36260:489138] Continuing to run tests in the background with task ID 1
2016-05-18 16:17:25.720 XCTRunner[36260:489138] *** Assertion failure in void _XCTFailInCurrentTest(NSString *, ...)(), /Library/Caches/com.apple.xbs/Sources/XCTest_Sim/XCTest-10112/XCTestFramework/Classes/XCTestCase.m:63
2016-05-18 16:17:25.723 XCTRunner[36260:489138] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '_XCTFailInCurrentTest should only be called while a test is running.
Failure description: Failed to receive completion for <XCDeviceEvent:0x7fddc241f970 page 12 usage 64 duration 0.01s within 30.0s'
The fix that worked for me was:
- reset .
- , iOS 9.x . ( iOS 8)
- , .
Xcode , .