为什么我在 Yosemite 上的 Xcode 中看不到 iOS 7.0 模拟器?

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

Why can't I see the iOS 7.0 simulator in Xcode on Yosemite?

iosxcodeios-simulatorosx-yosemite

提问by Patrick

I need to do some testing on an iOS 7.0.3 Simulator, but when I go to Preferences > Downloads in Xcode (6.0.1) there is no iOS 7.0 Simulator under the Components section.

我需要在 iOS 7.0.3 模拟器上进行一些测试,但是当我在 Xcode (6.0.1) 中转到首选项 > 下载时,组件部分下没有 iOS 7.0 模拟器。

Could it be because I am running Yosemite? I've heard of Mavericks machines losing support for iOS 6.0, but couldn't find any definitive answer on whether Yosemite has removed support for 7.0 simulators.

可能是因为我正在运行优胜美地?我听说 Mavericks 机器失去了对 iOS 6.0 的支持,但找不到关于 Yosemite 是否已取消对 7.0 模拟器的支持的任何明确答案。

采纳答案by David 'mArm' Ansermot

It's because you're on Yosemite. It doesn't support 7.0 anymore. Had the same issue.

那是因为你在优胜美地。它不再支持 7.0。有同样的问题。

回答by Juan de la Torre

XCode 6.1 in Yosemite starts with 7.1, if you need to test older iOS versions you can still install XCode 5.X from Apple's developer downloads siteusing your developer account. You can have both versions installed in the same machine.

Yosemite 中的 XCode 6.1 从 7.1 开始,如果您需要测试较旧的 iOS 版本,您仍然可以使用您的开发者帐户从Apple 的开发者下载站点安装 XCode 5.X。您可以在同一台机器上安装两个版本。

回答by Eir Nym

You can just copy simulator and framework from previous versions of Xcode. I use this method when I need to compile or test

您可以从以前版本的 Xcode 中复制模拟器和框架。当我需要编译或测试时我使用这个方法

回答by p0lAris

  1. Open iOS Simulator is at /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app.

  2. Go to Hardware > Devices > Manage Devices

  3. Add a simulator -> Download more simulators > Download iOS 7.1 Simulator

  1. 打开 iOS 模拟器位于/Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app.

  2. 转到硬件 > 设备 > 管理设备

  3. 添加模拟器 -> 下载更多模拟器 > 下载 iOS 7.1 模拟器

回答by dijipiji

Try this iOS Simulator -> Hardware -> Device -> Manage Devices and add / remove them as required.

试试这个 iOS 模拟器 -> 硬件 -> 设备 -> 管理设备并根据需要添加/删除它们。