Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 872
Eksperiment626 Avatar asked Sep 06 '11 00:09

Eksperiment626


People also ask

Can I change Xcode project name?

Select the project you want to rename in the “Project Navigator” which can be found on the left side of the Xcode view. On the right-hand side of the window, select the “File Inspector”. The name of your project should be in there under “Identity and Type”, change it to “NEW” and press Enter.

How do I change the project name and target name in Xcode?

Select the project from the project navigator to open the project editor and see a list of the app's targets. To rename a target, select it, press the Return key, and enter the new name. If all you want to do is rename the app, you're finished.


1 Answers

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.

like image 142
Ashley Avatar answered Sep 19 '22 17:09

Ashley