XCode bot错误:早期意外退出,操作从未完成引导 -

Amj*_*ini 10 xcode continuous-integration xcode-bots xcode-ui-testing xcode7.3

我有一个用swift编写的项目,我有主要目标和两个测试目标,一个用于使用快速框架进行单元测试,它有3个KIF测试.另一个目标有XCUItests.

所以每当我运行XCode bot与我们的XCode CI服务器集成时,我都会收到以下错误:

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.
Run Code Online (Sandbox Code Playgroud)

当我将它运行到模拟器集成中时,我遇到此错误,但是当我将CI服务器与物理设备连接并运行它时运行正常.

注意我正在使用XCode 7.3和迦太基0.11

小智 8

我遇到了同样的错误(虽然我使用fastlane来运行我的UI测试).

问题是由于模拟器卡在UI测试未处理的系统警报上.之后我的所有测试都失败了,随后的运行继续失败,因为模拟器没有响应.

我登录到机器并在中断警报上单击"确定",一切都恢复正常.

在我的情况下,警报出现了,因为应用程序试图注册APNS和

"App Name"想要启用Notifications alert.跳过用于UI测试的APNS注册可防止该问题再次弹出.

  • 鉴于CI机器不会显示正在运行的模拟器,因此不确定上述答案是如何实现的 (8认同)