简体   繁体   English

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

[英]Can't install ios 9 simulator via xcode 7.3.1

I have problem with Xcode 7.3.1 on OSX(10.11.4 El capitan) , namely, when i try to install any simulator using sudo /Applications/Xcode.app/Contents/MacOS/Xcode i get this error: 我在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

what's wrong? 怎么了?

here the log 这里的日志

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

Open Xcode . 打开Xcode

In the menu bar, click Xcode -> Preferences . 在菜单栏中,单击Xcode- > Preferences

Once in the Preferences screen, click the Components tab. 在“首选项”屏幕中,单击“ 组件”选项卡。

Now, Click the down arrow next to the desired Simulator. 现在,单击所需模拟器旁边的向下箭头

You can also check the validity of having saved each simulator by checking the directory where your simulators save. 您还可以通过检查模拟器保存的目录来检查保存每个模拟器的有效性。

Additionally, check the box that says "Check for and Install updates automtically" to avoid more problems of this nature. 此外,选中“自动检查并安装更新”复选框,以避免出现更多此类问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM