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.
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.
Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.
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.
@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!
You can launch Instruments directly from Xcode. Just choose the iOS Simulator as your build scheme and choose Profile from the Product menu.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With