Unable to run Instruments on an iOS app from the command line

Originator:mars.martian
Number:rdar://17901714 Date Originated:04-Aug-2014 02:50 PM
Status: Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:
 
Summary:
Using Xcode 6 beta 4, a UIAutomation script cannot be run from the command line. This used to work in Xcode 5.1.

Steps to Reproduce:
1. Install Xcode 6 beta 4.
2. Create an iOS app and Profile it (to create the .app)
3. Create a javascript file with just "var target = UIATarget.localTarget();"
4. Run this from the command line:
/Applications/Xcode6-Beta4.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode6-Beta4.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate <path to .app in DerivedData> -e UIASCRIPT <path to js file from step 3>

Expected Results:
The Simulator should start with the app running, and the javascript code should be executed.

Actual Results:
The command returns immediately with an exit code of 253.

Version:
Xcode 6 beta 4
instruments, version 6.0 (56127.2)
Mac OS X 10.9.4

Notes:


Configuration:
Anytime with Xcode 6 beta 4 installed.

Attachments:

Comments

I reproduced in Xcode6Beta6.


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!