Currently i'm using GitLab CI to run unit tests. It does this by calling the test script over shell.
xcodebuild -workspace project.xcworkspace -scheme Project -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.4' test
The line above works fine local on my machine. But when it's executed via GitLab CI it fails every single time on the following error:
Testing failed: Test target Project Tests encountered an error (Test session exited(-1) without checking in. If you believe this error represents a bug, please attach the log file at /var/folders/my/_940yjks21n_xd218d6707k40000gq/T/com.apple.dt.XCTest-status/Session-2015-09-07_13:17:08-MNG7kE.log)The last lines from the .log file:
2015-09-07 13:17:10.138 Launch session started, setting a disallow-finish-token on the run operation.
2015-09-07 13:17:10.163 Adding console adaptor for test process.
2015-09-07 13:17:15.353 Test operation failure: Test session exited(-1) without checking in.
2015-09-07 13:17:15.353 _finishWithError:Error Domain=IDEUnitTestsOperationsObserverErrorDomain Code=3 "Test session exited(-1) without checking in." UserInfo=0x7fd394f08ae0 {NSLocalizedDescription=Test session exited(-1) without checking in.} didCancel: 1
I can see the app launching on the iOS simulator, but then it just hangs on the launch screen and stops.
There isn't anything I can do with this error. What could be the problem?