Xcode 6.4“无法下载和安装 iOS 8.3 模拟器”

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

Xcode 6.4 "Could not download and install iOS 8.3 simulator"

iosiphonexcodexcode6ios-simulator

提问by snksnk

I've been trying to install iOS simulators 8.3 & 8.4 on Xcode 6.3.2 an 6.4 beta respectively. In the first case is not even an option to download this simulator while in Xcode 6.4 it shows an error "Could not download and install iOS 8.3 Simulator. Authorization is required to install the packages". I've searched the web but I could not find anything so I tries reinstalling Xcode from Apple developer website as well as from the app store with no change at all. The only simulator I can use is 8.2. I cannot install any other version. Any help would be really appreciated.

我一直在尝试分别在 Xcode 6.3.2 和 6.4 beta 上安装 iOS 模拟器 8.3 和 8.4。在第一种情况下,甚至没有下载此模拟器的选项,而在 Xcode 6.4 中,它显示错误“无法下载和安装 iOS 8.3 模拟器。安装软件包需要授权”。我在网上搜索过,但找不到任何东西,所以我尝试从 Apple 开发者网站和应用商店重新安装 Xcode,根本没有任何变化。我唯一可以使用的模拟器是 8.2。我无法安装任何其他版本。任何帮助将非常感激。

This is the error on Xcode 6.4 with no additional option of iOS 8.4 Simulator Xcode 6.4 beta

这是 Xcode 6.4 上的错误,没有 iOS 8.4 Simulator 的附加选项 Xcode 6.4 测试版

These are the simulator options for me to download which result in that error enter image description here

这些是我下载的模拟器选项,导致该错误 在此处输入图片说明

These are my options in Xcode 6.3.2 with no option for iOS 8.3 Xcode 6.3.2

这些是我在 Xcode 6.3.2 中的选项,没有适用于 iOS 8.3 的选项 Xcode 6.3.2

回答by Justin Michael

I found a workaround on the Apple forums. If you run Xcode using sudothe simulator downloads and installs work just fine:

在 Apple 论坛上找到了解决方法。如果您使用sudo模拟器下载和安装运行 Xcode ,则工作正常:

sudo /Applications/Xcode.app/Contents/MacOS/Xcode

Note: Once the downloads and installs are complete you should quit Xcode and start it normally.

注意:下载和安装完成后,您应该退出 Xcode 并正常启动它。

回答by Jeremy Huddleston Sequoia

The iOS 8.3 Simulator runtime is includes in Xcode 6.3 (which is why it isn't offered as an additional download).

iOS 8.3 Simulator 运行时包含在 Xcode 6.3 中(这就是它不作为额外下载提供的原因)。

The iOS 8.3 Simulator runtime should be downloadable from Xcode 6.4, as you show. Your dialog box reports that there was an authentication problem when attempting to install the package. You need to provide administrator credentials when installing the package.

如您所示,iOS 8.3 Simulator 运行时应该可以从 Xcode 6.4 下载。您的对话框报告在尝试安装包时出现身份验证问题。安装软件包时,您需要提供管理员凭据。

The reason you are getting your "iPhone 6 runs iOS 8.2 which is lower than -project name- minimum deployment target." errors is because you are selecting an iPhone 6 with iOS 8.2 on it and not an iPhone 6 with iOS 8.3 on it.

您收到“iPhone 6 运行的 iOS 8.2 低于-项目名称-最小部署目标”的原因。错误是因为您选择的是装有 iOS 8.2 的 iPhone 6 而不是装有 iOS 8.3 的 iPhone 6。

Use 'xcrun simctl create' or Xcode's Devices window to create the iOS 8.3 devices you need.

使用“xcrun simctl create”或 Xcode 的“设备”窗口来创建您需要的 iOS 8.3 设备。