Blog Index
« Useful FireFox extensions for Dev & Debug | Main | How to make function calls without injecting any code into your FLA? »
Monday
Feb152010

Renaming Project in Xcode the Simple Way

 

Ten simple steps to renaming your Xcode project in Xcode 3.2.1 without mucking with your xcodeproj file.

1) Projects->Rename

 

2) With the project renamed, now rename your AppDelegate using Refactor.  Go into your AppDelegate class, place your cursor in the class name, and right click to select Refactor.  Enter the new class name in the Refactor dialog box.

3) Now we are left with a few things to rename: your app name, info.plist file and your precompiled header (.pch).  For your pch file, you can simply rename it directly in Xcode.

4) Next, go to Targets.  Go ahead and change your target name to your new app name.

5) After that, right click on your select Get info.

 

 

6) Update your precompile header file in build settings.

 7) Update your info.plist in build settings.

 

8) Go to Build -> Clean All Targets.

9) Build your project.

10) (Optional) Don't forget to change your bundle identifier in your info.plist as appropriate.

 

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (2)

I don't have the "Rename..." option in Xcode 3.1.4. What version are you using?

March 25, 2010 | Unregistered CommenterSean

@Sean, I am using v3.2.1 on Snow Leopard.

March 25, 2010 | Registered CommenterBoon Chew

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>