Instruments CLI does not recognize valid devices
| Originator: | jlipps | ||
| Number: | rdar://17362829 | Date Originated: | 6/18/2014 |
| Status: | Open | Resolved: | |
| Product: | Instruments | Product Version: | 6 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Running `instruments -s devices` gives a list of valid devices. Running again using the exact string of a device from that list as the parameter to `-w` results in an error that instruments did not recognize the device. Steps to Reproduce: 1. Install Xcode/command line tools 2. Run a command to check devices supported by instruments: /Applications/Xcode6-Beta.app/Contents/Developer/usr/bin/instruments -s devices 3. Notice the list of devices: Known Devices: Sauce’s MacBook Air (EC381EA7-C2D0-5273-879B-04200C48ED34) Resizable iPad (8.0 Simulator) (78F6FC88-3E04-409B-9186-6B4E7B90212D) Resizable iPhone (8.0 Simulator) (881FDF6F-669E-4765-8FB2-C7F819834063) iPad 2 (8.0 Simulator) (98141C01-B98F-4576-90F7-950ED2EEF102) iPad Air (8.0 Simulator) (D6C8E111-6D93-426B-BC51-390F22108193) iPad Retina (8.0 Simulator) (BF8DA1BE-250E-4561-AC91-901D0D91F638) iPhone 4s (8.0 Simulator) (1C1B7C9D-6B38-4374-86BB-31A7CFA6F9F5) iPhone 5 (8.0 Simulator) (C06770EE-66DC-43E2-A73C-3FFC09C74A89) iPhone 5s (8.0 Simulator) (7538FB7A-DF4B-45FD-B7C5-F9D53BA8FEB6) 4. Compose an instruments invocation using one of these devices: /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 -w "iPhone 5s (8.0 Simulator) (7538FB7A-DF4B-45FD-B7C5-F9D53BA8FEB6)" /path/to/my.app -e UIASCRIPT /path/to/my/test.js -e UIARESULTSPATH /tmp Expected Results: I expect the simulator to launch the specified device, and run the test script in the context of my application Actual Results: In reality, we get the following error: Instruments Usage Error : Unknown hardware device specified: iPhone 5s (8.0 Simulator) (7538FB7A-DF4B-45FD-B7C5-F9D53BA8FEB6) Known Devices: Sauce’s MacBook Air (EC381EA7-C2D0-5273-879B-04200C48ED34) Resizable iPad (8.0 Simulator) (78F6FC88-3E04-409B-9186-6B4E7B90212D) Resizable iPhone (8.0 Simulator) (881FDF6F-669E-4765-8FB2-C7F819834063) iPad 2 (8.0 Simulator) (98141C01-B98F-4576-90F7-950ED2EEF102) iPad Air (8.0 Simulator) (D6C8E111-6D93-426B-BC51-390F22108193) iPad Retina (8.0 Simulator) (BF8DA1BE-250E-4561-AC91-901D0D91F638) iPhone 4s (8.0 Simulator) (1C1B7C9D-6B38-4374-86BB-31A7CFA6F9F5) iPhone 5 (8.0 Simulator) (C06770EE-66DC-43E2-A73C-3FFC09C74A89) iPhone 5s (8.0 Simulator) (7538FB7A-DF4B-45FD-B7C5-F9D53BA8FEB6) Notice that the device it says it can't find is listed in the error message itself. Attempting to run the same command with verbose logging to get more information does not help, because of bug 17362629. Version: Xcode 6 Instruments 6 OS X 10.10 Notes: Related problem: 17362629 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!
Workaround is to use either the device type (iPhone 5s (8.0 Simulator)) or the udid (7538FB7A-DF4B-45FD-B7C5-F9D53BA8FEB6) -- not both