Uruchamianie skryptów UIAutomation z Xcode

Czy komuś udało się skonfigurować automatyczne testy UIAutomation w Xcode?

Próbuję skonfigurować cel w moim projekcie Xcode, który powinien uruchamiać wszystkie skrypty UIAutomation, które przygotowałem. Obecnie jedynyFaza budowania tego celu jest toUruchom skrypt blok:

TEMPLATE="/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate"
MY_APP="/Users/Me/Library/Application Support/iPhone Simulator/6.0/Applications/564ED15A-A435-422B-82C4-5AE7DBBC27DD/MyApp.app"
RESULTS="/Users/Me/Projects/MyApp/Tests/UI/Traces/Automation.trace"
SCRIPT="/Users/Me/Projects/MyApp/Tests/UI/SomeTest.js"
instruments -t $TEMPLATE $MY_APP -e UIASCRIPT $SCRIPT -e UIARESULTSPATH $RESULTS

Kiedy zbuduję ten cel, to się udaje po kilku sekundach, ale skrypt nie został uruchomiony. W dzienniku kompilacji otrzymuję następujące błędy:

instruments[7222:707] Failed to load Mobile Device Locator plugin
instruments[7222:707] Failed to load Simulator Local Device Locator plugin
instruments[7222:707] Automation Instrument ran into an exception while trying to run the script.  UIATargetHasGoneAWOLException
+0000 Fail: An error occurred while trying to run the script.
Instruments Trace Complete (Duration : 1.077379s; Output : /Users/Me/Projects/MyApp/Tests/UI/Traces/Automation.trace)

Jestem całkiem pewien, że mój javascript i mój skrypt uruchamiania są poprawne, ponieważ jeśli uruchomię dokładnie to samo polecenie instrumentów w bashu, działa zgodnie z oczekiwaniami. Czy to może być błąd w Xcode?

questionAnswers(6)

yourAnswerToTheQuestion