How can I stop Xcode 3.2.6 defaulting to the iPad Simulator? Is this new behaviour?

早过忘川 提交于 2019-12-02 22:16:00

I tried some options and at the end I figured out a workaround that doesn't default to iPad simulator, but it uses SDK4.2 and always defaults back to the iPhone 4.2 Simulator.

I hope this works on your machine too and maybe sdk4.2 is good enough for you.

  1. Option-Click the build configuration overview menu (or whatever it's true name is)
  2. Select iOS Simulator 4.2 as Active SDK
  3. Select iPhone Simulator 4.2 as Active Executable
  4. Build
  5. Clean/Reopen/Whatever
  6. Build again and the iPhone simulator should be starting.

As I said, it uses SDK4.2, but imho it's better to use SDK4.2 than to switch to the iPad simulator each time you open/clean/... the project.

After you've compiled for the device (which switches the sdk to the base sdk) you have to redo the workaround.

Afaik there is no real solution for the problem. It exists in different variants for more than 6 months. Until the current xcode3 version for me it was switching back to iPhone simulator all the time. For other users it was defaulting to iPad.

There are more than a dozen threads in the apple dev forums. None of them offers a solution, or even a workaround.


You should file a bug at bugreport.apple.com and pray that xcode3 isn't considered end of life.

do yo have two xcode (or iphone sdk) installation on your machine? if yes then completely uninstall the xcode using this command -

sudo /Developer/Library/uninstall-devtools –mode=all

from all the locations (replace Developer with installed directory name)

and install the xcode 3.2.6 in developer directory

I finally solved this problem myself.

First, install new version of xCode, which is xCode 4.

Then set project scheme to iphone simulator and run app in xCode several times.

And re-install xCode 3 and the problem will be gone away!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!