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.

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.


Need Your Help

Passing Integer To Servlet

java jsp servlets

Getting an NumberFormat exception from a form submission that passes a phone number. However, the number passed is in fact a number and I convert it to an int within the servlet. Within the error m...

Microsoft word Text Parser in “C”

c parsing ms-word

I would like to know the procedure to adopt to parse and obtain text content from Microsoft word (.doc and .docx) documents . programming language used should be plain "C" (should be gcc).

php can't execute any external command?

php exec centos permission-denied

We moved from Slackware to CentOS here, it was working fine then without notice, php stopped executing external calls such as calls to "wc" and "spamc". All such calls appear on error_log as: