【发布时间】:2014-11-06 11:00:46
【问题描述】:
我将 Xcode 6 与 iOS 模拟器版本 8.1(内部版本 550.3)一起使用。
当我在 Xcode 中选择“构建并运行”时,如果应用程序尚未安装在模拟器中,一切正常。但是,如果是,我会在 Xcode 中收到以下错误:
无法在模拟器中运行应用 运行时遇到错误(域 = LaunchServicesError,代码 = 0)
模拟器的日志显示如下:
less ~/Library/Logs/CoreSimulator/CoreSimulator.log
Nov 6 11:53:47 Yggdrasil.local com.apple.dt.Xcode[4389] <Error>:
Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed.
(LaunchServicesError error 0.)" UserInfo=0x7fa697742360
{Error=PackagePatchFailed, ErrorDescription=Could not hardlink copy
/Volumes/UsersData/Users/kender/Library/Developer/CoreSimulator/Devices/AAD57C40-E208-4964-B63A-46B968B3EB36/data/Containers/Bundle/Application/FEE2DEB4-AEE3-48B7-BE71-5B027259C6FD/Baby Feeding.app
to /Volumes/UsersData/Users/kender/Library/Developer/CoreSimulator/Devices/AAD57C40-E208-4964-B63A-46B968B3EB36/data/Library/Caches/com.apple.mobile.installd.staging/temp.P8QJEE/extracted/Payload/Baby Feeding.app
with manifest /Volumes/UsersData/Users/kender/Library/Developer/CoreSimulator/Devices/AAD57C40-E208-4964-B63A-46B968B3EB36/data/Library/Caches/com.apple.mobile.installd.staging/temp.P8QJEE/extracted/com.apple.deltainstallcommands.com.owlcoding.babyfeeding}
(/Volumes/UsersData/Users/kender 是我的$HOME)。
我试图删除所有模拟器(从 Xcode 中的 Devices 窗口并重新添加它们 - 不走运。
我删除了整个 ~/Library/Developer 目录并允许 Xcode 重新创建它 - 之后同样的问题。
所以现在我卡在构建和运行 -> 进行更改 -> 删除应用程序 -> 构建和运行流程,这很糟糕......任何人遇到过这样的问题并找到了解决方案,或者也许你各位大神指点一下……
【问题讨论】:
-
尝试更新 Xcode 6.1。希望这会奏效。
标签: ios iphone xcode ios-simulator