Xcode 5 not showing Scheme option to run Simulator

2019-02-06 06:59发布

Xcode 5 is behaving just fine, and I'm able to build and run apps on my iOS 7 device and in the iOS 7 simulator.

However, I do want to support iOS 6.1, but I don't see any way to build and run the apps for an iOS 6 simulator.

Things wot I've done:

Originally, I was trying to see the app in the iOS 6 simulator by switching from iOS 7 to iOS 6 in the Hardware > Device menu in the iOS Simulator application, but there aren't any apps in the iOS 6 simulator.

I'm gathering from answers like this one that there should be something I can select before I click Build/Run.

I'd love to be able to see my apps in both iOS 6 and 7 simulators. Any ideas what I'm missing? Here's a LINK to what I see when I click on the simulator dropdown.

11条回答
啃猪蹄的小仙女
2楼-- · 2019-02-06 07:07

Solved restoring an older version of the xcodeproj file.

查看更多
Fickle 薄情
3楼-- · 2019-02-06 07:10

All you have to do is go to Xcode -> Preferences -> Choose the "Downloads" tab and install the iOS 6.0 Simulator.

Once you're done downloading it, it should show up as an option in your schemes.

查看更多
孤傲高冷的网名
4楼-- · 2019-02-06 07:17

Just a little caveat....I tried what you said but it didn't work for me... Changed Deployment Target on "Project" from 7.1 to 6.0

Then I realised that Deployment Target was still set to 7.1 on the "Target" - once I changed that it worked!

查看更多
手持菜刀,她持情操
5楼-- · 2019-02-06 07:17

Please check whether your "Deployment Target" is higher than the ones available on your simulators.

enter image description here

查看更多
该账号已被封号
6楼-- · 2019-02-06 07:20

Turns out the solution was changing the deployment target for the project from iOS 6.1 to iOS 6.0, upon which the simulator scheme selection immediately showed the option to choose iOS 6 or 7 simulators. Basically the deployment target should match a simulator version that you have installed.

Thanks to random commenters in questions like this one who mentioned that that worked for them.

查看更多
爷的心禁止访问
7楼-- · 2019-02-06 07:20

Xcode5 neither has 6.0 SDK or 6.0 simulator. But what you can do is u can copy both 6.0SDK and 6.0 simulator from your previous Xcodes (xcode4.5 for 6.0 and XCode4.6 for ios6.1) You can find the simulator at /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/applications/iphone simulator.app

And SDK at /applications/xcode.app/contents/developer/platforms/iphoneos.platform/devicesupport/6.0

Copy the entire folders for simulator and SDK in the exact same path of XCode5. Note: to go the the Contents of Xcode.app just do a right click on the .app file and you will get an option"Show Contents".

Once u are done copy pasting, restart ur XCode5 and u can see 6.0/6.1 simulator as an option :)

查看更多
登录 后发表回答