【发布时间】: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