【问题标题】:Can't install ios 9 simulator via xcode 7.3.1无法通过 xcode 7.3.1 安装 ios 9 模拟器
【发布时间】:2016-12-10 18:24:13
【问题描述】:

我在 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

【问题讨论】:

  • “使用sudo /Applications/Xcode.app/Contents/MacOS/Xcode”是什么意思。你是如何尝试安装的? (推荐使用 App Store 中的 Xcode8 stable。)
  • 我的意思是,最初我打开 Xcode then-components 然后安装模拟器并得到这个错误,在我发现的 stackoverflow 上,我应该通过终端使用命令 sudo /Applications/Xcode.app/ 下载模拟器内容/MacOS/Xcode。但同样的错误。你能给我 8 Xcode 的直接链接吗?或者我可以使用终端安装它吗
  • 你为什么要使用终端?只需以正常方式打开应用程序 Xcode,然后从“首选项”窗格安装任何所需的额外模拟器。
  • 当我打开 myapp. xcodeproject ,我总是得到错误,这个被锁定了,我不知道如何解锁,我在finder中做了,但是父类别被锁定,但它不是真的,我将属性更改为读写

标签: ios objective-c xcode


【解决方案1】:

打开 Xcode。

在菜单栏中,点击Xcode -> Preferences。

进入首选项屏幕后,点击组件标签。

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

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

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

【讨论】:

  • 我试着照你说的做,得到了同样的错误:)
  • hmm.. 好的,这里有一个链接可以找到你的模拟器目录:stackoverflow.com/questions/1108076/…
  • 使用它并打开该目录(使用终端命令“open”),并确保该目录中没有损坏。
  • 此外,此处投票最多的答案可能会有所帮助:stackoverflow.com/questions/31551480/…
  • 如果我所做的任何事情值得点赞或检查,将不胜感激:)
猜你喜欢
  • 2016-10-15
  • 2013-08-01
  • 2019-02-03
  • 1970-01-01
  • 1970-01-01
  • 2016-10-29
  • 2015-10-11
  • 2012-09-23
  • 1970-01-01
相关资源
最近更新 更多