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

Capture webcam's image with Ruby

ruby webcam

Is there any library in Ruby which I can use to capture the webcam's image? Has to run on GNU/Linux.

How can I sort an icloud NSMetadataQuery result of UIDocument's by modification date?

ios icloud uidocument nsmetadataquery

I have an iOS application that uses a simple UIDocument model with a single content field for iCloud storage. I retrieve the list of documents to populate a UITableView using an NSMetadataQuery. I ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.