 |
 |
|
 |
07-04-2009, 11:31 AM
|
#1 (permalink)
|
|
New Member
Join Date: Jan 2009
Location: Minneapolis, MN
Posts: 5
|
Rename an Application
I realize this must be known to everyone except me.
I would like to rename an application. It started out as just an test app to try things out, but now it's actually somewhat entertaining. All I need to do is change the name that appears publicly on the iphone.
-Bob
|
|
|
07-04-2009, 11:45 AM
|
#2 (permalink)
|
|
Tutorial Author
Join Date: Jun 2009
Posts: 25
|
In your resource folder in Xcode there is a file named YourApplicationName-Info.plist. Click on it and then alter the Bundle display name value from ${PRODUCT_NAME} to whatever you see fit.
|
|
|
07-04-2009, 11:50 AM
|
#3 (permalink)
|
|
Registered Member
Join Date: Jul 2008
Posts: 401
|
Quote:
Originally Posted by BobGordon
I realize this must be known to everyone except me.
I would like to rename an application. It started out as just an test app to try things out, but now it's actually somewhat entertaining. All I need to do is change the name that appears publicly on the iphone.
-Bob
|
I remember having this problem once too. I finally ended up doing the following:
1) create a new project and name it as you wish
2) arrange both the new and old project windows on your screen, so you can see them at the same time
3) drag and drop the files (.h, .m, xib files, etc...) to the new project window and make sure you select "copy" if XCode asks you.
4) hit build and correct all the errors (mostly renaming the app delegate in header and main files). If you used IB, don't forget to make all the connections
Seems, there is no easy way to solve this problem. If anyone knows better, I'd definitely like to be proven wrong on this one.
|
|
|
07-04-2009, 11:51 AM
|
#4 (permalink)
|
|
Registered Member
Join Date: Jul 2008
Posts: 401
|
Quote:
Originally Posted by Bovn
In your resource folder in Xcode there is a file named YourApplicationName-Info.plist. Click on it and then alter the Bundle display name value from ${PRODUCT_NAME} to whatever you see fit.
|
Oh, you replied just before me. That sounds interesting. Definitely need to give that one a try. Thanks
|
|
|
07-04-2009, 11:58 AM
|
#6 (permalink)
|
|
New Member
Join Date: Jan 2009
Location: Minneapolis, MN
Posts: 5
|
Quote:
Originally Posted by Bovn
In your resource folder in Xcode there is a file named YourApplicationName-Info.plist. Click on it and then alter the Bundle display name value from ${PRODUCT_NAME} to whatever you see fit.
|
Thanks. That solves that problem. Now all I have to do is hope the Marketing Dept. comes up with a shorter name.
|
|
|
07-04-2009, 11:59 AM
|
#7 (permalink)
|
|
Registered Member
Join Date: Jun 2008
Location: Planet Earth
Posts: 402
|
If you just want to change the bundle name, you can change the AppName-Info.plist, or just Info.plist.
If you want to change everything (which I mostly did, to create a better code readability), just rename the project, open the project, search for occurrences of old name in the code, replace with new name (use refactor if you wish to automatically rename the associated files), search for the old names in the project settings and target settings, replace them with new names.
Done, I usually don't get any errors (besides within the NIB, sometimes), cause I done this many times.
__________________
Visit Me
Writing code is not only about writing instructions to a machine / computer, but also about writing something that could be read, understood, and maintained by others. That's why, I like Cocoa.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 515 |
| 44 members and 471 guests |
| bbc z, BostonMerlin, cjamerlan, CoolApps, coolman, CunningCat, dany88, dbarrett, dda, designomatt, embedded, Gamer211, ggalante, gonk, IphoneSdk, jharrah, Kalimba, LemonMeringue, loobian, markbuchanan, MarkC, masc2279, Maximilian, MiniRobinho, montage, mquetel, naomipunkclan, Noise, pashik, pieter78, Pring, saul102, Snappy, soulless, StefanL, Tambourin, the1nz4ne, treazer, TunaNugget, Tuszy, wassupdoc, williamlegate, x2on, ZunePod |
| Most users ever online was 779, 05-11-2009 at 10:55 AM. |
» Stats |
Members: 21,508
Threads: 35,791
Posts: 156,796
Top Poster: smasher (2,449)
|
| Welcome to our newest member, JoelSelwood7 |
|