Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you select the IOS simulator as a target in Instruments?

I am new to IOS app development...

How do I select the IOS Simulator as a target from the Instruments application, so I can debug/profile an IOS App running on the simulator.

In Instruments I select: File -> New then pick the IOS Simulator / Memory / Allocations 'template', click 'choose'

Under 'Choose Target' the only existing targets show are my Macbook and a real iPod device. How do I select the IOS Simulator as a target?? If I select the 'Choose Target' option Instruments brings up a dialog where it wants me to select something from my filesystem... have no idea what to select.

This is Instruments 4.2.

Also, contrary to a various bits of info on the web, I can see no way to launch Instruments from in Xcode 4.2.

Thanks.

like image 432
Stuart Yoder Avatar asked Feb 26 '12 20:02

Stuart Yoder


People also ask

How do you choose a simulated device as a destination?

Click view-->show toolbar if you don't see it. Click on IOS Device and you should get a drop down menu of devices. The simulator should be in that list.

How do I select a specific simulator in Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.

How do I change simulator location in iOS?

in iOS Simulator menu, go to Features -> Location -> Custom Location. There you can set the latitude and longitude and test the app accordingly. This works with mapkit and also with CLLocationManager.


2 Answers

@CodaFi's comment above helped me figure out the solution.

Click and hold the run button in XCode or click on the little expansion triangle. Next choose Profile, which will open instruments and allow you to choose what you would like to profile :-)

I hope this helps!

like image 167
Abdo Avatar answered Nov 16 '22 03:11

Abdo


You can launch Instruments directly from Xcode. Just choose the iOS Simulator as your build scheme and choose Profile from the Product menu.

like image 40
edc1591 Avatar answered Nov 16 '22 01:11

edc1591