gpt4 book ai didi

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

转载 作者:技术小花猫 更新时间:2023-10-29 10:54:20 27 4
gpt4 key购买 nike

看起来 Teamcity 代理(TC 版本是 9.0 EAP)在通过测试 shell 脚本启动 iOS Simulator 时有问题。

我使用 Build Step: Command Line,它运行 Custom Script 并将参数传递给它。 Teamcity 代理在 Mac OS X Yosemite 10.10 上从 shell 脚本 ../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

关于ios - 模拟器启动等待 120 秒超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27035637/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com