问题
I have a project written in swift, and i have the main target and two test targets, one for unit testing using quick framework and it has 3 KIF tests. the other target has the XCUItests.
so whenever i run XCode bot integration with our XCode CI Server, i get the following error:
Bot Issue for Acceptance Bot (error)
Integration #63 of Acceptance Bot
Open in Xcode: xcbot://iosci/botID/1229919cecfcd510f090e37aed014a23/integrationID/16a3709d3ae008a68a65ff2fe9bb5a7b
Assertion: Test target MyUITests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
File: (null):(null)
Introduced 2 integrations ago
Full logs for this integration are attached.
I get this error when i run it into a simulator integration though it runs fine when i connect the CI server with a physical device and run it.
Note i'm using XCode 7.3 with carthage 0.11
回答1:
I was facing the same error (although I was using fastlane to run my UI Tests).
The issue was due to the simulator being stuck on a system alert which the UI Tests did not handle. After that all my tests failed and subsequent runs continued to fail as the simulator was not responding.
I logged into the machine and click OK on the disrupting alert and everything was back to normal.
In my case the alert came up since the application was trying to register of APNS and the
"App Name" would like to enable Notifications alert was displayed. Skipping the APNS registration for UI Tests prevented the issue from popping again.
来源:https://stackoverflow.com/questions/36312500/xcode-bot-error-early-unexpected-exit-operation-never-finished-bootstrapping