Xcode with SDK 4.2 always starting iPad Simulator

 ̄綄美尐妖づ 提交于 2019-12-21 04:16:36

问题


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.


回答1:


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...




回答2:


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




回答3:


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.




回答4:


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




回答5:


Check your .xcodeproj info. Navigate yourself in there and locate Simulator's Settings and choose 'iPhone' or 'iPad'

Hope this helps




回答6:


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.




回答7:


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




回答8:


You can go to Product -> Destination -> iPhone 6.1 Simulator.

It took me a while to figure out the reason, because even though you select the Device iPhone in Targets, it still opens the iPad emulator if you don't change the destination of your product.



来源:https://stackoverflow.com/questions/4309165/xcode-with-sdk-4-2-always-starting-ipad-simulator

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