Instruments 6 CLI fails to run UIAutomation script on simulator ("Failed to resolve target for Instrument")

Originator:jlipps
Number:rdar://17765220 Date Originated:7/22/2014
Status:Open Resolved:
Product:Instruments Product Version:6
Classification:Serious Bug Reproducible:Always
 
When I use Instruments CLI to execute a UIAutomation test script against a valid simulator device, automation fails with the error:

Instruments Usage Error : Failed to resolve target for Instrument 'Automation - kJ'

1. Install Xcode/Instruments/iOS8
2. Invoke instruments to run a UIAutomation test script:

/Applications/Xcode6-Beta4.app/Contents/Developer/usr/bin/instruments -v -t /Applications/Xcode6-Beta4.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -w "iPhone 5s (8.0 Simulator)" /my/test.app -e UIASCRIPT /my/testScript.js -e UIARESULTSPATH /tmp

I expect a simulator to launch and run through the script

I get this error:

Instruments Usage Error : Failed to resolve target for Instrument 'Automation - lkj'
instruments, version 6.0 (56127.2)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]

Comments

Apple closed my duplicate with: Duplicate of 17362829 (Open)

By joshuajmoody at Aug. 5, 2014, 10:44 a.m. (reply...)

16613248 is related

If I remove the hard coded paths and references to "Jonathan's iMac" from the trace template file using a plist editor, 17765220 does not occur.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!