iOS How to rename a program?

jrdoner

macrumors newbie
Original poster
Nov 26, 2009
12
0
Florida
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

macrumors regular
Jun 22, 2009
237
0
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

macrumors 604
Jul 29, 2003
7,735
956
Silicon Valley
Which name?

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

macrumors 65816
May 10, 2009
1,002
16
Des Moines, WA
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…"
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.