ios – 超时等待120秒的模拟器启动

看起来像Teamcity代理(TC版本是9.0 EAP)不能通过测试 shell脚本运行iOS模拟器.

我正在使用Build Step:命令行,它运行自定义脚本并将参数传递给它.通过使用shell脚本../bin/mac.launchd.sh,在Mac OS X Yosemite 10.10上启动了Teamcity代理.

构建日志错误

[12:33:24][Step 2/2] 2014-11-20 11:33:25.421 xcodebuild[28083:289783]  iPhonesimulator: Timed out waiting 120 seconds for simulator to boot,current state is 1.
[12:33:24][Step 2/2] 
[12:33:24][Step 2/2] Testing Failed:
[12:33:24][Step 2/2] Test target app-tests 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 /var/folders/sz/1lfcb1354xggcnd04_9j5kc40000gp/T/com.apple.dt.XCTest-status/Session-2014-11-20_11:31:25-P1Pjwd.log)
[12:33:24][Step 2/2] ** TEST Failed **

我的shell脚本进行测试:

xcodebuild \
    -sdk iphonesimulator8.1 \
    -destination "name=iPad Air,OS=8.1" \
    -configuration Debug \
    -project "$PROJECTPATH" \
    -scheme app-tests \
    CONfigURATION_BUILD_DIR="$BUILdpath" \
    clean test \
    | xcpretty -tc -r junit --output "$BUILdpath/junit.xml"

我也试过从这个question解决方案,但没有帮助我.

解决方法

这在评论中已经回答了,而且这里还有一个与苹果论坛谈论的链接,AFAIK,它仍然是这样的情况,直到苹果改变它

https://devforums.apple.com/message/1040016#1040016

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...