Xcode with SDK 4.2 always starting iPad Simulator

2019-03-26 13:14发布

Why does Xcode, after updating to SDK 4.2, always run my application in iPad Simulator instead of iPhone??? If I select iPhone Simulator as active executable it doesn't store my preference and runs the iPad simulator after any new Build & Run.

8条回答
Evening l夕情丶
2楼-- · 2019-03-26 13:33

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

查看更多
霸刀☆藐视天下
3楼-- · 2019-03-26 13:34

On XCode 3.2.6, you can go to "Project" menu -> "Set Active Executable" and select iPhone Simulator.

查看更多
甜甜的少女心
4楼-- · 2019-03-26 13:37

Check the Active Executable setting, as well as the Simulator's setting for "Device."

查看更多
【Aperson】
5楼-- · 2019-03-26 13:40

I had the same Problem. But suddenly after an Update it disappeared. Do you have the newest Version of all Software( or tried turning it off and on again)?

If that doesn't works, I would suggest a reinstall. Solved many of my Problems...

查看更多
▲ chillily
6楼-- · 2019-03-26 13:46

Try to Build -> 'Clean All Targets'. Go into Release configuration, compile and then back to Debug. Now you can choose Iphone Simulator. For me it works.

Hope this help.

查看更多
迷人小祖宗
7楼-- · 2019-03-26 13:47

Removing all iPad devices from the device list in the organizer (Window Menu > Organizer) fixed it for me. But i know that's not a perfect solution. I hope Apple will fix this soon.

查看更多
登录 后发表回答