本文介绍了超时等待120秒,模拟器启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

It looks like Teamcity agent (TC version is 9.0 EAP) can't run iOS Simulator via testing shell script.

我正在使用构建步骤:命令行,其中运行自定义脚本并将params传递给它。 Teamcity代理在Mac OS X Yosemite 10.10上使用shell脚本 ../ bin / mac.launchd.sh 启动。

I am using Build Step: Command Line, which running Custom Script and passing params to it. Teamcity agent was launched on Mac OS X Yosemite 10.10 by using shell script ../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脚本:

My shell script for testing:

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"

我也试过解决方案从这个但它没有帮助了我。

I also tried solution from this question but it didn't helped me.

推荐答案

评论中已经回答了这个问题,这里还有苹果论坛的链接,AFAIK ,它仍然是这样,直到苹果改变它才能实现这一点

This has been answered in the comments, and also here is a link to apple forums talking about it, AFAIK, its still the case that this isn't possible until apple changes it

这篇关于超时等待120秒,模拟器启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 09:44