Skip to content

Rename project File and Target Name in XCode

April 16, 2010

UPDATE:

With Xcode 4 , Apple has  made the process simpler. Just change the Project Name in the Navigator and Xcode does everything for you.

http://stackoverflow.com/a/4954029/189006

To change the name of the Scheme, go to the scheme window and edit them as mentioned here
http://stackoverflow.com/questions/5346767/is-there-a-way-to-rename-an-xcode-4-scheme

OLDER POST
This post is going to help you to change the name of your Project in XCode. And follow the steps given below to achieve the same.

1. Make a copy of your project Folder and delete the build folder if there is one.
2. Rename it to the name you wish to have.
3. Change the name of the .xcodeproj file to the name you wish to have.
4. Change the name of the .pch file.

Now it seems to be fine and when you run you will be blocked by the following error:
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

So lets get to the fifth step.
5. Go to the Targets. Right click on your Target Name and click Get Info.
6. Now go to the Build tab and find the GCC_PREFIX_HEADER in the User-Defined section and you will find the name of the .pch file that you have just renamed and voila.

For renaming the Target, just change the “Bundle display name” in your -info.plist file. And your done…

Advertisements

From → IDE, iOS, iPad, iPhone, Mac, Xcode

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: