无法通过xcode 7.3.1安装ios 9模拟器

时间:2016-12-10 18:24:14

标签: ios objective-c xcode

我在OSX(10.11.4 El capitan)上遇到Xcode 7.3.1问题,即当我尝试使用sudo /Applications/Xcode.app/Contents/MacOS/Xcode安装任何模拟器时 我收到这个错误:

could not download and install ios 9.1 simulator
when files are moved to the final location of an unexpected error occured

出了什么问题?

这里是日志

Mac-Pro-USER:~ MAC$ sudo /Applications/Xcode.app/Contents/MacOS/Xcode

Password:

2016-12-10 20:53:12.103 Xcode[3581:19770] Failed to locate a valid instance of CoreSimulatorService in the bootstrap.  Adding it now.

2016-12-10 20:53:12.297 Xcode[3581:19727] CoreSimulatorService connection interrupted.  Resubscribing to notifications.

2016-12-10 21:10:24.889 Xcode[3581:19708] [MT] DVTDownloadable: Error Domain=PKInstallErrorDomain Code=120 "Could not download and install iOS 9.1 Simulator. could not download and install ios 9.1 simulator  when files are moved to the final location of an unexpected error occured." UserInfo={NSLocalizedDescription=Could not download and install iOS 9.1 Simulator. 
could not download and install ios 9.1 simulator
when files are moved to the final location of an unexpected error occured., arguments=(

    "-f",

    "-s",

    "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager-SystemSoftware/C63C631F-0C12-4AAD-9864-7A0B007C6ACF.activeSandbox/Root",

    "/"

), NSUnderlyingError=0x7ff2fbfda940 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}

2016-12-10 21:10:47.884 Xcode[3581:29128] This process won't be able to use DD remote data sources

1 个答案:

答案 0 :(得分:0)

打开 Xcode

在菜单栏中,点击 Xcode - > 偏好设置

进入“首选项”屏幕后,单击组件选项卡。

现在,点击所需模拟器旁边的向下箭头

您还可以通过检查模拟器保存的目录来检查保存每个模拟器的有效性。

此外,请选中“自动检查并安装更新”复选框,以避免出现此类问题。