XCode bot error: Early unexpected exit, operation never finished bootstrapping -

空扰寡人 提交于 2019-12-05 18:14:39

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!