views:

32030

answers:

9

I began an iPhone project the other day with a silly development code name, and now I want to change the name of the project since its nearly finished.

But I'm not sure how to do this with XCode, trying the obvious of changing the application's name in the pinfo, causes the signing process to go wrong (I think...) and my app won't launch giving me a Launcher error.

I guess I could make a new project and copy paste everything over, but it seems so primitive, that I'm hoping for a more civilized solution.

Thanks!

+60  A: 
  1. Go to Targets in Xcode
  2. "Get Info" on your project's target (your current silly development name)
  3. Search for "Product Name" under "Packaging". Change the value of that what you want the new program name is going to be.
Giao
Thanks I'll try it when I get home!
Robert Gould
That worked, thanks!
Robert Gould
It works! thank you!
BlueDolphin
I had to quit XCode and delete my build directory before it would take for me.
sbwoodside
Also, remember to change this in each of the configurations! (Debug, Release, Ad Hoc, App Store, etc)
Tony Eichelberger
For anyone else that is a complete beginner, "Targets" is inside of the "Groups )
Hamy
Still not 100% for my app. I followed the above, as well as @Kiran's method using Xcode,Project -> Rename; I also deleted the build folder several times to no legacy issues.-However "Console" is still referring to my old name. I'm concerned on some deeper level the app's name has not really been changed 100%.-My concern is with the fact that I've made a "lite" version by starting with a copy of the "full" version. So I don't want the device to get confused if my customers upgrade and download the full version and the device see two apps with the same "core" name.-Any Suggestions??
Newbyman
Example of above comment:2010-07-03 10:56:35.129 OldAppName [45672.207] Test Message-Even though I have changed the Product_name, ".app" name Bundle name, etc...-Where does "Console" get this name, so I can truly change the app's name 100%?
Newbyman
A: 

Also: your target name may be the same as your app name - note that changing the target name does not change the app name - only the change in the target properties described below - will change the app name.

Manuel Mattke
+1  A: 

I've had to do this a few times. I use a tool called Rename XCode Project 2.1.

Nosredna
+3  A: 

I saw the setting as "Product Name" not "Project Name" - in any case, the change worked.

Joe Regan
Agreed, "Product Name" was the key for me. Giao's instructions are otherwise spot-on.
John M. P. Knox
The old iPhone OS 2.x SDK had it as "Program Name". It was changed with 3.0 SDK to "Product name".
Giao
A: 

There are times when the simple way still doesn't work (or there are echoes of old naming, etc.). I posted an article showing how to fix this by going into the xml of the project files manually here:

http://pushplay.net/blog_detail.php?id=29

Jeffrey Berthiaume
+4  A: 

You change the bundle display name in the info.plist. It's as simple as that.

Buffernet
+1  A: 

Here's a free utility that does this and works well in my experience:

http://www.macupdate.com/info.php/id/17683

Frank Schmitt
this works for everything except renaming your plist file which yu can do manually.
CodingWithoutComments
+6  A: 

In XCode 3.2 just select the Project entry in the Groups & Files panel, then select the menu item Project -> Rename… Worked for me.

Kiran
A: 

@all: Not fully answered. The title of the application window and the pulldown menu of the application stays with the old name.
@Frank Schmitt: The "Rename xCode Project" project fails when the plist file was renamed. It awaits the name Info.plist

JJD