Note that there are some explanatory texts on larger screens.

plurals
  1. POAutomation testing with instruments on device
    text
    copied!<p>I am trying to follow <a href="https://stackoverflow.com/questions/4191945/can-the-ui-automation-instrument-be-run-from-the-command-line">this post</a> to run UIAutomation scripts on iOS devices from command line, but i can't make it work.</p> <p>This is the command i am currently using : instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/X/Library/Developer/Xcode/DerivedData/TestiPhoneAutomation2-dyufpxsavtdqkybpagcoawdudzid/Build/Products/Debug-iphoneos/TestiPhoneAutomation2.app -e UIASCRIPT "/Users/X/Workspaces/TestiPhoneAutomation/test2.js" -e UIARESULTSPATH "/Users/X/Workspaces/TestiPhoneAutomation2/" -w 80bf5b...UDID...dfb52543 -v</p> <p>It works well on simulator (replacing the Debug-iphoneos by Debug-iphonesimulator, it also ignore the -w in this case), but if i launch it using an application compiled for device it crash (i tried with release and debug, i get the same result).</p> <p>The error i'm getting is : </p> <blockquote> <p>posix spawn failure; aborting launch (binary == /Users/X/Library/Developer/Xcode/DerivedData/TestiPhoneAutomation2-dyufpxsavtdqkybpagcoawdudzid/Build/Products/Debug-iphoneos/TestiPhoneAutomation2.app/TestiPhoneAutomation2). 2012-10-03 12:10:36.609 instruments[76151:1603] Recording cancelled : At least one target failed to launch; aborting run Instruments Trace Error : Failed to start trace.</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload