Iphone – How to set the default device in the iPhone simulator

ios-simulatoriphone

Every time I switch Xcode between debugging on my iPhone and running in the simulator it resets the simulated device. I want to run the simulator as an iPhone device, but it keeps changing back to iPad. Does anyone know how to set the configuration so that the simulator defaults to an iPhone device?

I can switch the hardware to iPhone inside the Simulator, but when I go back to Xcode and run a "Build Debug" it reopens the app inside an iPad. The only way I can get it to switch is by using the Overview menu in Xcode, the choices I see are iPad Simulator 3.2 and iPhone Simulator 4.0

And when I switch between device and simulator then it always goes back to iPad.

Best Answer

I got XCode 4 to launch the iPhone simulator instead of the iPad simulator by doing this:

  1. In the "Product" menu, pick "Edit Scheme".
  2. Single-Click "Run *Your_Project_Name* Debug" from the list on the left of the scheme editing window.
  3. At the top of the window notice that the pull-down above "Destination" is set to "iPad 4.3 Simulator".
  4. Change the pull-down to "iPhone 4.3 Simulator".
  5. Click "OK".
Related Topic