user532668
user532668

Reputation:

How can I change the name of my iOS project?

How can I change a name of my project in the Xcode?

Upvotes: 31

Views: 31738

Answers (9)

Abizern
Abizern

Reputation: 150605

In Xcode try the Project | Rename menu command.

See here.

Upvotes: 1

Moshe
Moshe

Reputation: 58077

Newer Versions of Xcode

According to the Xcode documentation says that you can select your project in the lefthand panel and then open the properties inspector. By editing the project name, you'll be prompted to renamed targets etc.

enter image description here

Original Answer

I'm not sure exactly what you are asking, so I've given two parts to my answer.

To change the display name of your project, (under the icon on the home screen) you should edit your Info.plist file in the Resources group of your project. Change the Bundle Display Name key. Make sure that you save the plist file and that you've deleted the old app from the simulator. Then, clean your build and then you can build it again to the simulator.

To change the name of your project, target and executable, click on Project -> Rename... in Xcode.

Upvotes: 51

Jayprakash Dubey
Jayprakash Dubey

Reputation: 36447

It's simple. Just press enter on name of project. Rename your project as desired. This will prompt changes to be done in entire Project. Click on Rename.

enter image description here

enter image description here

Upvotes: 18

Ameer
Ameer

Reputation: 725

If you want to change Project Name, Target name, -Info.plist name & -Prefix.pch name then,

    - Select Project in Xcode (.xcodeproj file)
    - Selecte file inspector
    - In identity section change project name which u want to update & press enter
    - After scanning whole project it will ask to change the file names i.e target, plist & pch file
    - Select check boxes as per your need 

Upvotes: 2

Nick Hoàng
Nick Hoàng

Reputation: 437

if only change display name under app icon in device main screen you just need change "Bundle display name" key of target at tab info.

Upvotes: 0

hotpaw2
hotpaw2

Reputation: 70673

Ap iOS app under construction has at least 6 "names". They can all be different and can be set in different places.

  1. Project name.
  2. Target name.
  3. Product name (which will become the .app bundle file name, should have no spaces).
  4. Bundle display name (in the info.plist, displayed under the icon, spaces allowed).
  5. Bundle ID suffix.
  6. App name you give iTunes Connect.

Depending on what you change, you may need to delete the app from your device/simulator, and reinstall/build-and-run, to quickly see the changes.

Upvotes: 15

Artem Oboturov
Artem Oboturov

Reputation: 4385

@Mosche This question should be updated for XCode 4.

Seems one has to use sed in .xcodeproj directory:

find . -type f -exec sed -i -e 's/OldProjectName/NewProjectName/g' {} \;

Upvotes: -3

Linuxmint
Linuxmint

Reputation: 4746

1) Expand the "Resources" folder

2) Click on the "yourappname-info.plist"

3) Expand the "Information Property List"

4) You can change the "Bundle Display Name" to anything you want to display on the iPhone Home Screen.

Upvotes: 0

user532668
user532668

Reputation:

Ah, I figured it out already. You need to change the active target.

Upvotes: 4

Related Questions