我在iOS模擬器版本8.1(內部版本550.3)中使用Xcode 6。iPhone模擬器在從Xcode重新安裝應用程序時報告錯誤
當我在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
)。
我試圖刪除所有模擬器(從Devices
窗口在Xcode並重新添加他們 - 沒有運氣
我刪除整個〜/庫/ Developer目錄,並允許Xcode中重新創建它 - 同樣的問題後,
所以,現在我被困在構建和運行 - >進行更改 - >刪除應用程序 - >生成和運行流,哪種類型的爛...任何人遇到這樣的問題,並找到了解決方案,或者也許你們對我有一些指點......
嘗試更新Xcode 6.1。希望這會起作用。 – Urmi 2014-11-06 12:38:59