PDA

View Full Version : How to rename a program?




jrdoner
Nov 26, 2009, 01:39 PM
I have an app that I would like to keep in its present form, and also extend to a bigger app.

I have made a copy of the app to work on, but of course it still has the name of the old program. I would like to change it's name, but I'm a little leery of simply changing the file relevant file names. (I tried to rename a viewcontroller once by renaming the h, m, and nib files, and it broke my program.)


Is there a way to refactor that changes the whole program name?

Thanks in advance for any help.

John Doner



drf1229
Nov 26, 2009, 02:52 PM
To change the app's name so it shows up under a new name on a device:

1. Right click your app under targets (in xcode of course). A popup should appear.

2. Under configuration, select all configurations.

3. Search "Product Name"

4. Edit to your likings

firewood
Nov 26, 2009, 05:43 PM
There are at least 6 names to change. The project name, the target name, the product (.app file) name, the bundle identifier suffix, the bundle name that goes under the icon, and sundry files that can include the above names (app delegate, prefix and xib's). Plus there's a name you enter for the product in the App store.

lloyddean
Nov 26, 2009, 06:41 PM
If you're using the latest version of Xcode you need only go to the "Project" menu and select (I'm not in front of a Mac at the moment so from memory) "Rename Project". You'll be presented with a list of things you can choose to rename in the course of renaming the project.

Edit:

Well now that I've Xcode in front of me I need to correct the above. In the Project menu select "Rename…"