Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - How to change application/project name : what do I need to to update and check?

Using Xcode 4.2, if I want to change my application/project name (including the name of the project folder and subfolder that are auto created by Xcode), what are the different items I need to update to make the whole thing compile and work again like a charm ?

I have noticed that I have to change the pch acces path, the bundle identifier, ... but I'm afraid of missing something.

like image 747
Oliver Avatar asked Nov 03 '11 16:11

Oliver


People also ask

How do I change the name of my Xcode project?

Select the project you want to rename in the “Project Navigator” which can be found on the left side of the Xcode view. On the right-hand side of the window, select the “File Inspector”. The name of your project should be in there under “Identity and Type”, change it to “NEW” and press Enter.

How do you change the name of an app?

Tap on the app name. Information about the app shortcut displays in the right pane. Tap the area that says “Tap to change label”. The “Rename shortcut” dialog box displays.

How do you change your app name on Testflight?

It's in Appstoreconnect>>Apps>>YourApp>App Information. If you will change here then it will reflect in Testflight.


2 Answers

It's really easy in Xcode 4. Simply double click (slowly) on your project name in the Navigator (the bar on the left). When you change the name of your project, Xcode will ask you to confirm which files to change (generally, it will be all of the ones necessary).

Alternately, if you simply want to change the name of your bundle (the name of your app as it appears in a users' home screen), you can just change your "Bundle Display Name" in your app plist.

like image 136
Keller Avatar answered Oct 04 '22 02:10

Keller


An advice : NEVER change the name of your project without having saved the whole thing before. Even if XCode has a feature that helps to do this, using it may destroy all your hard work to organise your project, letting many many dirty things everywhere, not changing everything that needs to be changed, it's just awfull. I've tried this some days ago on a just simple project, letting XCode change the main things, but it has let so many things unchanged, or changed things without updating links, so I've had to rebuild a new project from the beginning to make it compile again.

like image 40
Oliver Avatar answered Oct 04 '22 02:10

Oliver