Xcode 4 - IOS - Simulator not available as build target

霸气de小男生 提交于 2019-12-08 14:55:48

问题


I have a weird issue... I'm unable to find the simulator as a device in order to test my application. Anyone have any idea how to fix it? In a new project, it is available though.

Regards, EZFrag


回答1:


Here's what happened to me ... when I updated to the latest version of XCode (4.3.2) I didn't bother to uninstall the previous version. I mistakenly opened my iOS 5.1 targeted project in the older version of XCode that does not know about 5.1 and as a result the simulator was not available. So i would check for the following:

  • See which version of XCode you're currently running
  • Try checking your iOS Deployment Target ... (Targets -> Deployment). If iOS 5.1 is selected change it to iOS 5.0 (the simulator will show up immediately)



回答2:


In additional to G.Bickham's answer, please make sure the iOS Simulator is downloaded.

To verify the download status, go to Xcode's Preferences > Downloads > Components > iOS Simulator



来源:https://stackoverflow.com/questions/10121143/xcode-4-ios-simulator-not-available-as-build-target

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