XCode bot错误:早期意外退出,操作从未完成启动 - [英] XCode bot error: Early unexpected exit, operation never finished bootstrapping -

查看:803
本文介绍了XCode bot错误:早期意外退出,操作从未完成启动 - 的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个以swift编写的项目,我有主要目标和两个测试目标,一个用于使用快速进行单元测试框架,并且具有3个 KIF 测试。
其他目标有XCUItests。



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


















/ botID / 1229919cecfcd510f090e37aed014a23 / integrationID / 16a3709d3ae008a68a65ff2fe9bb5a7b

断言:测试目标MyUITests遇到错误(提前意外退出,操作从不完成引导 - 不尝试重新启动)
文件:(null) (null)

之前推出2个集成

此集成的完整日志已附加。

当我运行它到一个模拟器集成时,我得到这个错误,当它连接CI

请注意,我使用XCode 7.3和carthage 0.11

解决方案

我面临着同样的错误(虽然我使用fastlane来运行我的UI测试)。



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



我登录到机器,单击确定中断警报,一切都回来到正常。



在我的情况下,从应用程序尝试注册APNS和



应用程序名称要启用通知警报已显示。跳过用于UI测试的APNS注册可防止该问题再次弹出。


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

解决方案

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.

这篇关于XCode bot错误:早期意外退出,操作从未完成启动 - 的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆