如何在 Xcode 6.1 中安装 iOS 7.0 和 iOS 8.0 模拟器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26491922/
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-08-31 03:16:49  来源:igfitidea点击:

How to install iOS 7.0 and iOS 8.0 Simulators in Xcode 6.1?

iosxcodeios-simulatorxcode6

提问by iCanCode

I want to test my app on both iOS 7.0 and iOS 8.0. I upgraded my iPhone5 to iOS 8.1. Now the only way to test my app in these OS' are using Simulator. But after upgrading my Xcode to 6.1. I'm unable to see iOS 7.0 and 8.0 Simulators. I need to install these simulators in Xcode 6.1. Is there any way to install these Simulators in Xcode 6.1?

我想在 iOS 7.0 和 iOS 8.0 上测试我的应用程序。我将 iPhone5 升级到 iOS 8.1。现在在这些操作系统中测试我的应用程序的唯一方法是使用模拟器。但是在将我的 Xcode 升级到 6.1 之后。我看不到 iOS 7.0 和 8.0 模拟器。我需要在 Xcode 6.1 中安装这些模拟器。有没有办法在 Xcode 6.1 中安装这些模拟器?

NOTE:

笔记:

1) I copy pasted these simulator SDKs from old Xcode to the Xcode 6.1's contents but it didn't work.

1) 我将这些模拟器 SDK 从旧 Xcode 复制粘贴到 Xcode 6.1 的内容中,但没有用。

2) I tried installing these from Xcode > Preferences > Downloads but these doesn't show up in the list.

2)我尝试从 Xcode > Preferences > Downloads 安装这些,但这些没有显示在列表中。

3) I removed all the Devices from Xcode's Window > Devices and then restarted the Xcode and re-added them but these simulators doesn't show up.

3) 我从 Xcode 的 Window > Devices 中删除了所有设备,然后重新启动 Xcode 并重新添加它们,但这些模拟器没有出现。

采纳答案by Jeremy Huddleston Sequoia

Only iOS 7.0 and later simulators are supported on Xcode 6.0.x and 6.1.x. Only iOS 7.1 and later simulators are supported on Xcode 6.2 and greater.

Xcode 6.0.x 和 6.1.x 仅支持 iOS 7.0 和更高版本的模拟器。Xcode 6.2 及更高版本仅支持 iOS 7.1 及更高版本的模拟器。

The older simulators runtimes are not compatible with the new CoreSimulator architecture. You need to install Xcode 5.1.x if you want to run iOS 6.x simulators.

旧的模拟器运行时与新的 CoreSimulator 架构不兼容。如果要运行 iOS 6.x 模拟器,则需要安装 Xcode 5.1.x。

The iOS 7.0 simulator does not work on OSX Yosemite, so you need to be on OS X Mavericks if you want to run the iOS 7.0 simulator.

iOS 7.0 模拟器不能在 OSX Yosemite 上运行,所以如果你想运行 iOS 7.0 模拟器,你需要在 OS X Mavericks 上。

The iOS 8.0 simulator is not available as DLC. It is only supported in Xcode 6.0. If you really want to use it with newer versions of Xcode, you can try copying the iPhoenSimulator8.0.sdk and iOS 8.0.simruntime from Xcode 6.0 into Xcode 6.1, but as stated, this is not supported.

iOS 8.0 模拟器不能作为 DLC 使用。它仅在 Xcode 6.0 中受支持。如果您真的想将它与较新版本的 Xcode 一起使用,您可以尝试将 iPhoenSimulator8.0.sdk 和 iOS 8.0.simruntime 从 Xcode 6.0 复制到 Xcode 6.1,但如前所述,这不受支持。

See:

看:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS 8.0.simruntime

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS 8.0.simruntime

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk