Teamcity 代理(TC 版本为 9.0 EAP)似乎启动时出现问题iOS Simulator
通过测试 shell 脚本。
I use Build Step: Command Line
,运行Custom Script
并将参数传递给它。 Teamcity 代理通过 shell 脚本在 Mac OS X Yosemite 10.10 上启动../bin/mac.launchd.sh
.
构建日志中的错误:
[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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)