3

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.

Community
  • 1
  • 1
Ron D.
  • 3,774
  • 6
  • 31
  • 39

3 Answers3

1

-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.

Community
  • 1
  • 1
Darc
  • 696
  • 1
  • 6
  • 14
0

I was doing it as follows: 1.I created a template in which I was calling my UI Automation Main file that Triggers running all the scripts. EX: //Main.js file will run auto.js scripts //auto.js is my main file in which I am running all the scripts //Main.js file #import "auto.js" auto.run(); //Now open terminal and run the following command. 1. Go to the directory where you saved your template 2.Copy the location where you simulator (full path) is Than run the command below: instruments -t ./NameOfYourTemplate.tracetemplate /Users/swathyvalluri/Debug-iphonesimulator/MyApp.app

Note : Create a new file in the template and copy the contents into it what ever you want to put, otherwise it will look for Main.js file in your locally and will fail when running it on another server.

Please let me know if you need more help :)

swathy valluri
  • 5,039
  • 2
  • 16
  • 13
0

Device id means here UDID of the device.

Also see the link below, it is very useful : http://lemonjar.com/blog/?p=69

swathy valluri
  • 5,039
  • 2
  • 16
  • 13