Xcode - 使用较旧的 iOS 版本运行模拟器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26788426/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:07:08  来源:igfitidea点击:

Xcode - Run Simulator with older iOS Version

iosxcodeios-simulatorxcode6

提问by iqueqiorio

Hey I have done a lot of looking around and seen many answers for how to do this in older versions of Xcode, but they don't seem to aplly to Xcode 6. So how can I run an older version of iOS in the simulator with Xcode 6.

嘿,我已经环顾四周,看到了很多关于如何在旧版本的 Xcode 中执行此操作的答案,但它们似乎不适用于 Xcode 6。那么我如何在模拟器中运行旧版本的 iOS 6. 代码

Thanks for the help

谢谢您的帮助

回答by matt

In the Downloads pane of Xcode's Preferences, download the iOS 7 or 7.1 simulator.

在 Xcode 首选项的下载窗格中,下载 iOS 7 或 7.1 模拟器。

After it is downloaded, go to the Devices window (Window -> Devices) and click the Plus button to make a new simulated device with the system version you want. For example you might decide to make an iPhone 4s that's running iOS 7.

下载后,转到设备窗口(窗口 -> 设备)并单击加号按钮以使用您想要的系统版本制作新的模拟设备。例如,您可能决定制作运行 iOS 7 的 iPhone 4s。

Now you'll be able to choose that device/system as the destination when you build and run.

现在,您可以在构建和运行时选择该设备/系统作为目标。

回答by Yar

Please note that matt's solution is not available on new version of OS X (El Capitan). Here are all the available Simulators:

请注意,matt 的解决方案不适用于新版本的 OS X (El Capitan)。以下是所有可用的模拟器:

enter image description here

enter image description here