预期结果:您在创建机器人时选中“测试”复选框,Xcode 服务器会像在 WWDC 中一样完美地执行 mt 测试。
结果:Xcode 吐出一堆模拟器超时错误,集成失败。
测试目标“xxx”遇到错误(模拟器启动超时等待 120 秒,当前状态为 1。如果您认为此错误代表错误,请在/Library/Developer/XcodeServer/Integrations 附上日志文件/Integration-0e5a387ef456a57b7a2d5a90d004256d/xxxx.log)
环境:
- Xcode 7.0.1
- 服务器 5.0.4
- 操作系统 10.11
- 在两台不同的机器上复制了两个不同的项目。
- 此外,在 OSX 10.10 和 Xcode 6 上体验过这一点
真正的问题: 我是一个足够称职的程序员,拥有多年的 iOS 经验。很难相信,尽管也许不应该相信,在 WWDC 中看起来如此简单的东西在两个不同的操作系统和 Xcode 版本上却会如此失败。
注意事项:
- 我在同一台机器上运行 Xcode 和 Xcode Server。我不必通过 SSH 登录。
- Xcode 建议检查的集成日志文件路径无效,但我可以从 Xcode 获取原始构建日志
这是其他人遇到类似问题的列表,也许对其他人有帮助:
Xcode server, bots, continuous integration, and unit-testing on the simulator(同样的问题,解决方案无效)
https://github.com/czechboy0/Buildasaur/issues/84(不完全相同,但相关)
http://joshuabrauer.com/2015/04/xcode-server-and-continuous-integration-ios(为数不多的解决它的人之一,无法复制)
Timeout when running xcodebuild tests under Xcode 6 via SSH(Jenkins 解决方案)
- Timed out waiting 120 seconds for simulator to boot(TeamCity CI 问题 - 在评论中解决)
- https://devforums.apple.com/message/1040016#1040016(Jenkins/SSH 方法 - 已解决*)
- http://www.openradar.me/22273042(雷达)
- https://openradar.appspot.com/22413115(雷达)
- http://www.openradar.appspot.com/18282084(雷达)
最佳答案
请复制雷达https://openradar.appspot.com/23386199所以苹果希望能认识到这种奇怪的行为
这对我有用:Xcode server, bots, continuous integration, and unit-testing on the simulator
关于ios - Xcode 7.0.1、机器人和服务器 5.0.4 : Test target "xx" encountered an error - Timed out waiting 120 seconds for simulator to boot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33003556/