Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launching instruments from command line with iPhone simulator

Following this question, how do I launch instruments with iPhone simulator as a device. I tried this:

$ instruments -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -w iphonesimulator5.0 MyApp.app

But I get this error:

Instruments Usage Error : Device failed to become ready for use.

like image 986
Ron D. Avatar asked May 12 '26 06:05

Ron D.


1 Answers

-w <deviceID> is used only when you wish to specify a hardware device as the destination (the 'deviceID' here is the Identifier of the device, found in the Organizer of Xcode).

Instead of using -w, you can specify a flag during the build to force instruments to use iPhone. Details can be found here.

like image 168
Darc Avatar answered May 15 '26 08:05

Darc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!