» 首頁 » 討論區 » iOS程式討論 »模擬器 couldn't be completed. (LaunchServicesError ... 解法

模擬器 couldn't be completed. (LaunchServicesError ... 解法

發表人: Seachaos
積分: 2432
發表時間: 2016-06-26 20:09:07
如果有使用 CocoaPods 的 XCode 專案,有時候會遇到一些鬼打牆的問題
例如 無緣無故忽然間就出現什麼 /bin/sh exit code 1
或是
[sea:linuxCode]
The operation couldn't be completed. (LaunchServicesError error 0.)
[/sea]

[sea:linuxCode]
Command /bin/sh failed with exit code 1
[/sea]

還是不能 copy 什麼 framework,出現 exit code 之類的

可以使用以下解決辦法:

都有可能是專案沒有 Clean 乾淨 ( 一般的 Product -> Clean 可能無效)
這時候要按 Alt ,再選一次 Product -> Clean Build Folder ( 隱藏功能)
就有可能變正常了