Xcode 7.0.1、Bots 和 Server 5.0.4:测试目标“xx"遇到

Xcode 7.0.1, Bots, and Server 5.0.4: Test target quot;xxquot; encountered an error - Timed out waiting 120 seconds for simulator to boot(Xcode 7.0.1、Bots 和 Server 5.0.4:测试目标“xx遇到错误 - 等待模拟器启动 120 秒超时)
本文介绍了Xcode 7.0.1、Bots 和 Server 5.0.4:测试目标“xx"遇到错误 - 等待模拟器启动 120 秒超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

预期结果:您在创建机器人时选中测试"复选框,Xcode 服务器完美地执行 mt 测试,如

结果: Xcode 报出一堆模拟器超时错误,集成失败.

Test target "xxx" 遇到错误(Timed out waiting 120 seconds for simulator to boot, current state is 1. 如果您认为此错误代表错误,请在/Library/Developer/XcodeServer/Integrations 附加日志文件/Integration-0e5a387ef456a57b7a2d5a90d004256d/xxxx.log)

环境:

  • Xcode 7.0.1
  • 服务器 5.0.4
  • OSX 10.11
  • 在具有两个不同项目的两台不同机器上复制.
  • 另外,在 OSX 10.10 和 Xcode 6 上体验过这个

真正的问题:我是一个足够称职的程序员,拥有多年的 iOS 经验.很难相信,虽然可能不应该这样,但在 WWDC 中看起来如此简单的东西在两个不同的操作系统和 Xcode 版本上却如此失败.

注意事项:

  • 我在同一台机器上运行 Xcode 和 Xcode Server.我不必通过 SSH 登录.
  • Xcode 建议检查的集成日志文件路径无效,但我可以从 Xcode 获取原始构建日志

这里列出了其他有类似问题的人,也许会对其他人有所帮助:

  • Xcode 服务器,机器人、持续集成和模拟器上的单元测试(同样的问题,解决方案不起作用)

  • https://github.com/czechboy0/Buildasaur/issues/84(不完全相同,但相关)

  • http://joshuabrauer.com/2015/04/xcode-server-and-continuous-integration-ios(少数解决了它的一个,无法复制)

  • 运行 xcodebuild 测试时超时Xcode 6 通过 SSH(Jenkins 的解决方案)

  • Xcode 服务器模拟器超时等待 120 秒(未解决)

  • 模拟器启动超时等待 120 秒(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 服务器、机器人、持续集成和模拟器上的单元测试

Expected Result: You check the "Test" checkbox when creating a bot and Xcode server flawlessly executes mt tests like in the WWDC.

Result: Xcode barfs up a bunch of simulator timeout errors and the integration fails.

Test target "xxx" encountered an error (Timed out waiting 120 seconds for simulator to boot, current state is 1. If you believe this error represents a bug, please attach the log file at /Library/Developer/XcodeServer/Integrations/Integration-0e5a387ef456a57b7a2d5a90d004256d/xxxx.log)

Environment:

  • Xcode 7.0.1
  • Server 5.0.4
  • OSX 10.11
  • Replicated on two different machine with two different projects.
  • Also, experienced this on OSX 10.10 and Xcode 6

Real Problem: I'm a competent enough programmer with several years of iOS experience. It's hard to believe, although maybe it shouldn't be, that something that looks so simple in WWDC would fail so hard for on two different operating systems and versions of Xcode.

Notes:

  • I'm running Xcode and Xcode Server from the same machine. I don't have to SSH in.
  • The integration log file path that Xcode suggests checking is invalid, though I can get the raw build log from the Xcode

Here is a list of other people having similar issues, maybe it will help others:

  • Xcode server, bots, continuous integration, and unit-testing on the simulator (Same issue, solution didn't work)

  • https://github.com/czechboy0/Buildasaur/issues/84 (Not exactly the same, but related)

  • http://joshuabrauer.com/2015/04/xcode-server-and-continuous-integration-ios (One of the few to have solved it, wasn't able to replicate)

  • Timeout when running xcodebuild tests under Xcode 6 via SSH (Solution for Jenkins)

  • Xcode Server Simulator Times Out Waiting 120 Seconds (unresolved)

  • Timed out waiting 120 seconds for simulator to boot (Problem w/TeamCity CI - resolved in comments)
  • https://devforums.apple.com/message/1040016#1040016 (Jenkins/SSH approach - solved*)
  • http://www.openradar.me/22273042 (Radar)
  • https://openradar.appspot.com/22413115 (Radar)
  • http://www.openradar.appspot.com/18282084 (Radar)

解决方案

Please duplicate the radar https://openradar.appspot.com/23386199 so apple hopefully recognizes this strange behaviour

This worked for me: Xcode server, bots, continuous integration, and unit-testing on the simulator

这篇关于Xcode 7.0.1、Bots 和 Server 5.0.4:测试目标“xx"遇到错误 - 等待模拟器启动 120 秒超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Why local notification is not firing for UNCalendarNotificationTrigger(为什么没有为UNCalendarNotificationTrigger触发本地通知)
iOS VoiceOver functionality changes with Bundle Identifier(IOS画外音功能随捆绑包标识符而变化)
tabbar middle tab out of tabbar corner(选项卡栏中间的选项卡角外)
Pushing UIViewController above UITabBar(将UIView控制器推送到UITabBar上方)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Get an event when UIBarButtonItem menu is displayed(显示UIBarButtonItem菜单时获取事件)