Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do my xcode builds always go to the iPad simulator instead of the iPhone simulator?

I just installed the latest SDK from Apple so I can start learning iPhone / iPad app development. However, I'm having a stupid issue: all my builds get run in the iPad simulator instead of the iPhone simulator, and I have no idea how to change it.

like image 633
Ryan Waggoner Avatar asked Feb 27 '10 22:02

Ryan Waggoner


People also ask

How do I change the 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 the default device in Xcode?

In Xcode, go to Product -> Destination -> Choose Destination menu and selecting the device you'd like to be your default.

How do I change simulator location in Xcode?

Select Run | Edit Configurations from the main menu or Edit Configurations from the run/debug configuration selector on the toolbar. Choose your configuration from the list and go to the Options tab. Select the Allow Location Simulation checkbox. If the None value is selected, your current location will be used.

How do I get Xcode iPhone simulator?

Launch Xcode. Do one of the following: Choose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.


2 Answers

For now, the iPhone Simulator 3.2 SDK is iPad-only. Test using the iPhone Simulator 3.1.2 SDK

edit: as of the upcoming 4.2 SDK, the iPhone and iPad versions of iOS have been unified under a single SDK.

like image 180
rpetrich Avatar answered Sep 19 '22 02:09

rpetrich


On your build selector dropdown, (where you select device or simulator), there's now a new option that lets you choose the "Active Executible." Choose "iPhone Simulator."

alt text http://img.skitch.com/20100227-qyadm4ktn3abr3j44upkufjieh.jpg

like image 37
chrissr Avatar answered Sep 22 '22 02:09

chrissr