Xcode: How do I change my project folders name, without having building problems?

Niklas Jensen picture Niklas Jensen · Sep 6, 2011 · Viewed 7.1k times · Source

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 solve this?

Answer

Ashley picture Ashley · Nov 8, 2011

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.