Sembra che l'agente di Teamcity (versione TC è 9.0 EAP) non possa eseguire iOS Simulator
tramite test dello script di shell.Timeout in attesa di 120 secondi per l'avvio del simulatore
Sto usando Build Step: Command Line
, che esegue Custom Script
e passa parametri ad esso. L'agente di Teamcity è stato lanciato su Mac OS X Yosemite 10.10 utilizzando lo script di shell ../bin/mac.launchd.sh
.
errore da Costruire Log:
[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 **
mio script di shell per il test:
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"
Ho anche provato la soluzione da questo question ma non mi ha aiutato.
Quando sto usando ** Build Step: Xcode Project ** Ricevo lo stesso errore: 'iPhoneSimulator: Impossibile avviare il simulatore: -10810. Timeout in attesa di 120 secondi per l'avvio del simulatore, lo stato corrente è 1. ** TEST FAILED ** ' – sig
Ho aperto la discussione sul forum JetBrains: https://devnet.jetbrains.com/message/5529292#5529292 – sig
La mia esperienza è che l'agente ** deve ** essere avviato attraverso una sessione desktop reale (cioè non tramite SSH, e suppongo che l'avvio tramite launchd potrebbe essere simile a SSH). In caso contrario, l'interazione con il simulatore iOS non funzionerà, a prescindere da cosa. – Leo