我似乎遇到了将Xcode6与jenkins集成的问题,我目前有这个设置并使用Xcode 5.
随着xcode 6通过SSH远程运行模拟器超时,当我在本地运行时它成功.
命令
xcodebuild -workspace PROJECTNAME.xcworkspace -scheme BGO_Tests -destination'platform = iOS模拟器,名称= iPhone 5s'dedevedDataPath ./Build clean test
2014-08-19 10:46:36.591 xcodebuild [33966:381f] iPhoneSimulator:超时等待120秒>模拟器启动,当前状态为1.
测试失败:测试目标BGO_Tests遇到错误(超时等待120秒,模拟器启动,当前状态为1
测试了最近的Xcode 6 beta 6
预期结果:在创建机器人时检查"测试"复选框,Xcode服务器完美地执行mt测试,就像在WWDC中一样.
结果: Xcode阻止了一堆模拟器超时错误,并且集成失败.
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)
环境:
真正的问题: 我是一个有足够能力的程序员,拥有多年的iOS经验.很难相信,尽管可能不应该,但在WWDC中看起来如此简单的东西在两个不同的操作系统和Xcode版本上都会如此难以理解.任何帮助,将不胜感激!
笔记:
这是其他人有类似问题的列表,也许它会帮助其他人:
Xcode服务器,机器人,持续集成和模拟器上的单元测试(同样的问题,解决方案不起作用)
https://github.com/czechboy0/Buildasaur/issues/84(不完全相同,但相关)
http://joshuabrauer.com/2015/04/xcode-server-and-continuous-integration-ios(解决它的少数人之一,无法复制)
通过SSH在Xcode 6下运行xcodebuild测试时超时(Jenkins解决方案)
Xcode服务器模拟器超时等待120秒(未解决)
我正在尝试从jenkins运行UI Automation脚本:
instruments -w 'iPhone 6 (8.1 Simulator)' \
-t '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate' \
'myAppName' \
-e UIASCRIPT 'some_path' \
-e UIARESULTSPATH 'some_other_path'
Run Code Online (Sandbox Code Playgroud)
但我收到错误,模拟器无法启动
Waiting for device to boot...
2015-03-18 10:29:04.064 instruments[13082:64124] [MT] iPhoneSimulator: Could not launch simulator: -10810
Run Code Online (Sandbox Code Playgroud)
我从jenkins用户下的命令行运行时工作.
非常感谢任何帮助,谢谢.