Teamcity 에이전트 (TC 버전이 9.0 EAP) 인 것처럼 보이는 것은 셸 스크립트 테스트를 통해 iOS Simulator
을 실행할 수 없습니다.시뮬레이터가 부팅 될 때까지 120 초 동안 대기합니다.
Custom Script
을 실행 중이고 매개 변수를 전달하는 Build Step: Command Line
을 사용하고 있습니다. Teamcity 에이전트는 쉘 스크립트 ../bin/mac.launchd.sh
을 사용하여 Mac OS X Yosemite 10.10에서 시작되었습니다. 빌드 로그에서
오류 : 테스트를위한
[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 **
내 쉘 스크립트 :
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에서 솔루션을 시도했지만 그것은 나에게 도움이되지 않았다. 사과가 변경 될 때까지
** 빌드 단계 : Xcode 프로젝트 **를 사용할 때 'iPhoneSimulator : 시뮬레이터를 시작할 수 없습니다 : -10810. 시뮬레이터가 부팅 될 때까지 120 초 동안 대기, 현재 상태는 1입니다. ** 테스트 실패 ** – sig
JetBrains 포럼에 대한 토론이 열렸습니다. https://devnet.jetbrains.com/message/5529292#5529292 – sig
내 경험은 에이전트 **는 ** 실제 데스크탑 세션 (즉, SSH를 통하지 않고 시작해야 함)과 launchd를 통해 시작하는 것은 SSH와 유사 할 수 있습니다. 그렇지 않으면 iOS 시뮬레이터와의 상호 작용이 무엇이든 상관없이 작동하지 않습니다. – Leo