Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode bot error: Early unexpected exit, operation never finished bootstrapping

I have a project written in Swift with a 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.

like image 850
Amjad Husseini Avatar asked Mar 30 '16 14:03

Amjad Husseini


1 Answers

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.

like image 72
dreadlord2203 Avatar answered Oct 24 '22 05:10

dreadlord2203