Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change name of iPhone app in Xcode 4

Tags:

iphone

I want to change the name which is displayed below the app icon on the iPhone screen. I use Xcode 4 and I have one target with keys:

  • Bundle display name : ${PRODUCT_NAME}
  • Bundle name : ${PRODUCT_NAME}

What I want, my project name is for example "test" but I want to have "MySuperApp". So, where can I change it best? Is there a place where I can change ${PRODUCT_NAME}?

Are there any other places where I have to change it?

like image 284
Tim Avatar asked Feb 18 '11 15:02

Tim


People also ask

How do I change the product name in Xcode?

Go to Project -> Edit Project Settings -> Select Build tab -> look for productName in packaging category. Change it to what you want.

How do I change my app Display name?

Go to the app > res > values > strings. xml file as shown in the below image. In this file we have a string name as app_name it is the string resource that holds the current app name which is passed in the Manifest. xml file's application tag inside the label attribute.


2 Answers

Answer without file rename

Note that an answer that does not require file rename is below.

Answer with file rename

OK, here is what I found, took me a bit of hunting after reading this post, so hopefully this answer will help everyone:

1.In the project contents pane at left, click the Folder icon.

Folder icon

2.Select the top-level blue line representing the project.

Project icon

3.If you don't have the Inspector pane (right pane) open, click the button to enable it. This is the third button in the "View" toolbar towards the upper right corner.

Third button in "View"

4.In the Inspector pane, click the little folded-corner paper (file properties) icon.

File inspector

5.First thing is Project Name. Type in a new one, you will be prompted to rename project content files.

Project name field

I should add, this will leave your old app with the original name in the simulator, so you still need to delete it from the simulator. Also any files you created in the old app bundle will not be brought forward to the new bundle (unless you find them in Finder and move them over).

(EDIT:) One more important note. Renaming your bundle will mean that the App Bundle Identifier you registered with Apple Provisioning Portal will no longer work for that app. You will need to generate a new App ID and Provisioning Profile in order to distribute your app to a physical device.

like image 153
Jay Imerman Avatar answered Sep 28 '22 05:09

Jay Imerman


In Xcode 4, select your target, "Info" tab, and set the "Bundle display name" field to the name you want (i.e. "MySuperApp"). This is the simplest, pain-free solution.

All other answers described here do not address the original posted issue: "I want to change the name which is displayed below the app icon on the iPhone screen." The upvoted answers of: Woody, Jay, and youshunei are OK but they will all change the displayed name AND either:

A) change your App Bundle Identifier and cause an incompatibility between your app and the Bundle Identifier you registered with the Apple Provisioning Portal (which is a problem if you have already distributed your app or intend to submit the app)

OR

B) result in scheme issues that others have mentioned (i.e. needing to delete/re-create existing schemes)

like image 34
Chris Avatar answered Sep 28 '22 05:09

Chris