2014-12-04 34 views
3

我使用標識和類型下的側欄上的折射器更改了我的項目名稱。一切都相應改變。但是,我的測試目標遇到了一個錯誤:名稱更改後項目將不會運行

clang: error: no such file or directory:'/Users/E/Downloads/GalaxyRun/GameTutorial/GameTutorial-Prefix.pch' 
clang: error: no input files 
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 

我該如何解決此問題?我正在使用iOS 8.

+0

您是如何重構項目名稱的? – holex 2014-12-04 12:41:43

+0

點擊我的項目,在右邊的側邊欄下,在身份和類型下,我更改了名稱,併爲我重構了Xcode。 @holex – 2014-12-04 12:43:59

+0

以及爲什麼不手動重命名'.pch'文件? – holex 2014-12-04 12:45:25

回答

1

今天我遇到了類似的問題。你需要手動修復它。搜索GameTutorial-Prefix.pch並用您的新名稱進行更改。

enter image description here

+0

剛剛嘗試過你的方法,並以類似的錯誤結束:ld:file not found:/ Users/E/Library/Developer/Xcode/DerivedData/GalaxyRun-gecyucqrichnavaryykscedfhltu/Build/Products/Debug -iphonesimulator/GameTutorial.app/GameTutorial clang:error:鏈接器命令失敗,退出代碼1(使用-v查看調用) – 2014-12-04 13:01:52

+0

您還需要更改應用程序名稱,如Debug-iphonesimulator/NewName.app/NewName – BoranA 2014-12-04 13:25:30

+1

鏈接部分,然後你需要清理deriveddata。 – BoranA 2014-12-04 13:34:14