2014-12-04 38 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