Xcode: How do I change my project folders name, without having building problems?
I would like to change the folder name where my Xcode project is in. But when I do that I can't build my project anymore. It shows me 2 errors that says:
Apple LLVM compiler 3.0 error file "project name-Prefix.pch" has been modified since the precompiled header was built
Any way to开发者_Python百科 solve this?
Select Product > Clean
from the Xcode menu.
Then try and build again by selecting Product > Build
.
Your project should build without errors assuming that targets are correct.
Either you have replaced the code to some another machine. Try to commit the explicitly included import in the .PCH file. Compile it once on that specific machine. Now un-comment the those import lines and then compile the code again.
If you are trying to build project from terminal then
execute "$ xcodebuild clean " before execute the build command.
This will resolve the issue.
精彩评论