Instruments CLI will not launch iOS8 automation trace (
| Originator: | jlipps | ||
| Number: | rdar://17363898 | Date Originated: | 6/18/2014 |
| Status: | Resolved | Resolved: | 7/22/2014 |
| Product: | Instruments | Product Version: | 6 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary:
Running instruments from the command line without a specific device selected via the `-w` flag results in the error "Automation is not available for this type of application"
Steps to Reproduce:
1. Install Xcode/CLI tools
2. Run a basic instruments CLI command with an iOS8 test application/script:
/Applications/Xcode6-Beta.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode6-beta.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate /path/to/my.app -e UIASCRIPT /path/to/my/test.js -e UIARESULTSPATH /tmp
Expected Results:
I expect the simulator to launch with the default device and run my app and test script, the way it does in Instruments 5
Actual Results:
We see this error:
2014-06-18 18:17:13 +0000 Fail: Exception: Automation is not available for this type of application.
Verbose mode gives us some more information:
Instruments : template : file:///Applications/Xcode6-beta.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate
Instruments : Plugin Search Paths (
"/Applications/Xcode6-Beta.app/Contents/Applications/Instruments.app/Contents/PlugIns",
"/Applications/Xcode6-Beta.app/Contents/Applications/Instruments.app/Contents/PlugIns",
"/Applications/Xcode6-Beta.app/Contents/Applications/Instruments.app/Contents/PlugIns/DTracePlugin",
"/Applications/Xcode6-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Instruments/PlugIns"
)
Instruments : Loaded Instruments (
"Instrument Type (name:Signposts; category:Behavior; uuid:com.apple.xray.instrument-type.signpost)",
<snip>
"Instrument Type (name:Automation; category:UI Automation; uuid:com.apple.xray.instrument-type.UIAutomation)"
)
Instruments : Loading template 'file:///Applications/Xcode6-beta.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate'
Instruments : Setting Instrument Trace Command : Instrument Command (purpose:Idle; output destination:file:///Users/saucelabs/Code/appium/instrumentscli8.trace)
Instruments : Trace Command Recognized
Instruments : (null)
Instruments : (null)
Instruments : Instruments Accepted Command
Instruments : Preparing To Start Trace
Instruments : Starting Instrument(s)
2014-06-18 18:19:17 +0000 Fail: Exception: Automation is not available for this type of application.
Instruments : Stopping Instrument(s)
2014-06-18 11:19:18.898 instruments[84155:440245] Output Paths: (
"/Users/saucelabs/Code/appium/instrumentscli8.trace",
"/Users/saucelabs/Code/appium/instrumentscli8.trace/instrument_data",
"/Users/saucelabs/Code/appium/instrumentscli8.trace/form.template",
"/Users/saucelabs/Code/appium/instrumentscli8.trace/Trace1.run",
"/Users/saucelabs/Code/appium/instrumentscli8.trace/instrument_data/1E2B732A-6DCA-48F6-9272-CF92DECBC024",
"/Users/saucelabs/Code/appium/instrumentscli8.trace/instrument_data/1E2B732A-6DCA-48F6-9272-CF92DECBC024/run_data",
"/Users/saucelabs/Code/appium/instrumentscli8.trace/shared_data/1.run",
"/Users/saucelabs/Code/appium/instrumentscli8.trace/instrument_data/1E2B732A-6DCA-48F6-9272-CF92DECBC024/run_data/1.run.zip"
)
Instruments Trace Complete (Duration : 1.132321s; Output : /Users/saucelabs/Code/appium/instrumentscli8.trace)
Version:
Xcode 6
Instruments 6
OS X 10.10
Notes:
I also can't get an automation trace to successfully start from Instruments.app. It will start the app (so it gets further than instruments CLI), but even a simple 1-line UIAutomation script will immediately fail with no information given as to the reason
Related bugs: 17363642
Configuration:
All configurations
Comments
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!