Robert Gould
Robert Gould

Reputation: 69893

How can I change the name of an iOS app in Xcode?

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 it's nearly finished. How can I do this?

Upvotes: 1167

Views: 589774

Answers (30)

Arnab Ahamed Siam
Arnab Ahamed Siam

Reputation: 513

Follow these four steps maintaining the serial number. And in step 4, give your desired name...

step 1: Click on your project

step 2: Click on the target

step 3: Click on the General tab

step 4: Under identity click on Display name and change it.

You can see details on the image.

Shortcut: -> Just look at the image

Enter image description here

Upvotes: 10

Dan Rosenstark
Dan Rosenstark

Reputation: 69787

Xcode 7/8? It's in the plist that your target uses:

Enter image description here

Upvotes: 37

Jeffrey Neo
Jeffrey Neo

Reputation: 3809

You can modify the Product Name without changing your Project Name (especially the directory).

Build Settings → search the keyword "product name" → Update values

Upvotes: 13

T_T
T_T

Reputation: 437

A note on the bundle display name: This is the right way to change the name in your app menu, but you'll likely have to reset content and settings in your iOS simulator before you see the change actually take effect.

Upvotes: 12

Konstantin Salavatov
Konstantin Salavatov

Reputation: 4540

In Xcode 4, click on project name to start renaming.

Upvotes: 17

pseudosudo
pseudosudo

Reputation: 6590

In Xcode 4, search for "Product Name" under "Build Settings" tab of the target.

Upvotes: 149

mmattke
mmattke

Reputation: 721

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.

Upvotes: 13

Giao
Giao

Reputation: 15146

  1. Go to Targets in Xcode.
  2. Build Settings on your project's target (your current development name).
  3. Search for Product Name under Packaging. Change its value to what you want your new project name to be.

ProductName

Upvotes: 1170

Kingsley Akpan
Kingsley Akpan

Reputation: 273

I solved it by changing the CFBundleDisplayName in the InfoPlist.strings file.

Upvotes: 0

Dinesh Kokare
Dinesh Kokare

Reputation: 68

For Xcode 13, if you want to change the App Display Name then simply go to plist and simply replace the value of CFBundleDisplayName: using that you can display the name of application. In the .plist file you need added this.

CFBundleDisplayName Your App Name

Upvotes: 2

Muhammad Nayab
Muhammad Nayab

Reputation: 1742

For Xcode 11, if you want to change the App Display Name then simply go to plist and simply replace the value of CFBundleDisplayName:

<key>CFBundleDisplayName</key>
<string>Your App Name</string>

Upvotes: 24

UGandhi
UGandhi

Reputation: 579

Use TargetBuild SettingProduct name.

Upvotes: 2

Deep
Deep

Reputation: 436

Select project navigator → select TargetIdentityDisplay NameName.

Upvotes: 6

garg
garg

Reputation: 2727

Project NavigatorGeneralDisplay Name

enter image description here

Upvotes: 9

Biranchi
Biranchi

Reputation: 16327

It's very easy to change in Xcode 8. enter the app name in the "Display Name" field in Project TargetGeneral Identity section.

enter image description here

Upvotes: 15

ingconti
ingconti

Reputation: 11666

I think there is a bit of confusion:

  • Do you want to change the project name or
  • do you want to change the App name on the iOS dashboard?

Usually it is enough to change the latter, adding/modifying the BUNDLE DISPLAY NAME key in plist.

It is better to leave the project name untouched, but it may be changed.

Note that Bundle display Name can contain spaces and special characters, but project not. Doing so some cmd line tools will fail due to filename path rules.

And even more Bundle Display names can be localized.

So unless you are in early stage and need to change the internal project name, go on using the Bundle Display Name key.

Upvotes: 9

surfrider
surfrider

Reputation: 1425

I saw many ways to change your app name on the home screen, and I don't think the necessity of edit your .plist file or changing Build Settings of target is justified.

By default in Xcode 7.2 you even don't have 'bundle display name' in your plist file.

And by default, your 'Product name' in 'Build settings' tab of your target is equal to $(TARGET_NAME). IMHO, it's convenient and didn't mean to change.

So you can simply change your Target name like hallski said in his comment for accepted answer. I made picture for it:

Enter image description here

Upvotes: 9

parvind
parvind

Reputation: 907

In TargetBuild SettingProduct name field, you can edit that field here.

Upvotes: 6

Lester
Lester

Reputation: 741

Using Javier's approach to rename my app works perfectly. There is just one small bit missing in the end that I wanted to add.

I still ended up getting a Mach-O Linker Error after a clean and rebuild. To resolve this; select yourProject (in the Project Navigator). Under Targets, select yourProjectTests (the test target) → under the General tab, update the Host Application's value to the newly renamed project.

Upvotes: 7

Frank Eno
Frank Eno

Reputation: 2659

The easiest way: select the TARGET name, double click on it, and rename.

You'll see your app's new name underneath the icon on your device or simulator.

Upvotes: 7

ytbryan
ytbryan

Reputation: 2694

I am using this script after I rename my iOS project. It helps to change the directories name and make the names in sync.

http://github.com/ytbryan/rename

NOTE: you will need to manually change the scheme's name.

Upvotes: 5

C0D3LIC1OU5
C0D3LIC1OU5

Reputation: 8680

For the sake of gathering all relevant information in one place, here is the official answer to this question - and it is the only one that worked for me on Xcode 5.1.1

Just use the Identity and Type pane in Xcode.

Use Identity and Type pane in Xcode

Upvotes: 11

poordeveloper
poordeveloper

Reputation: 2322

The best way I like in Xcode 5 is to change product name in building settings. Search "product name" in "building settings", and change it.

Enter image description here

Upvotes: 21

Javier Cadiz
Javier Cadiz

Reputation: 12536

In new versions of Xcode (Xcode 5 too), to change the name of the project, follow these simple (detailed as possible) steps:

Note: In this example I'll change a hypothetical "Sample" name to a "Test" one.

  1. Click twice slowly on the project root in the project navigator and then it becomes editable.

    Enter image description here

  2. Rename the project.

    Enter image description here

  3. After pressing Enter the assistant will suggest you to automatically change all project-name-related entries and will allow you to de-select some of them, if you want.

    Enter image description here

  4. Press 'RENAME' and Xcode will do the rest. In the meanwhile Xcode may ask you about the option of making a snapshot of the project (it is very recommendable to do so).

  5. In addition to renaming the project, you may want to rename the scheme so that it matches your new project name.

    Enter image description here

  6. Repeat similar steps like 1 and 2, and press OK.

    Enter image description here

    enter image description here

  7. That's it.

Another scenario...

The previous explanation was related to changing the project name, but chances are that you only need to change the display name that appears below the app icon in the home screen. These are the steps:

  1. In the "Supporting Files" group locate the info.plist (or related) file

  2. Locate the "Bundle display name" key and change the value to the new name.

    enter image description here

    enter image description here

  3. Delete the "old" app from the simulator or any other testing device.

  4. Clean and rebuild your app again.

  5. That's it. You will now see the new app name in your home screen.

Upvotes: 396

maddy
maddy

Reputation: 4111

For changing the application name only (that will display along with the app icon) in Xcode 4 or later:

Click on your project file icon from Groups & Files panel, choose TargetBuild SettingsPackagingProduct Name. Click on the row. A pop-up will come. Type your new app name here.

For changing the project name only (that will display along with project icon) in Xcode 4 or later:

Click on your project file icon from the Groups & Files panel, choose Project (above targets) from the right pane. Just see at the far right pane (it will be visible only if you have enabled "Hide or show utilities"). Look for the project name. Edit it to a new name you want to give your project.

Delete your app from simulator/device, clean and run. Changes should reflect.

That's it.

Upvotes: 9

Roger C S Wernersson
Roger C S Wernersson

Reputation: 6562

  1. Select the top-most line to the left (with your project name, number of targets, etc.).
  2. Select the target you wish to rename.
  3. Click on the name of the target again.
  4. Type the new name.
  5. Press Enter.

Upvotes: 9

Code Hunter
Code Hunter

Reputation: 11218

If you want to change the display name only then you can directly change it in the property file (plist) of the app.

You can add a new row with the following key: Bundle display name

Here is an example for this:

Enter image description here

When you use this the app name, which you have given with this key, it will be displayed.

So you can do this simply.

Upvotes: 50

Yogi
Yogi

Reputation: 3588

From Xcode 4.2 and onwards, you can use one more option. Just click once on the .proj file name at the top in left navigation pane and it will be available for renaming. Rename it and the whole project will get renamed and not only the target.

Upvotes: 22

Nareille
Nareille

Reputation: 821

If you want to change the name, that will be displayed on your screen, right under your icon, in Xcode 4, go to TargetsInfoBundle Display Name and change it to whatever you want.

Upvotes: 18

Dilip Rajkumar
Dilip Rajkumar

Reputation: 7074

This is how I changed it in Xcode 4:

  1. Click on your target file (the first main file of the application).
  2. Go to Build Settings.
  3. Scroll down you will find a bar called "Packaging".
  4. Under Packaging you will see Product Name, and you can change the project name.

Upvotes: 41

Related Questions