Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-04-2009, 11:31 AM   #1 (permalink)
New Member
 
Join Date: Jan 2009
Location: Minneapolis, MN
Posts: 5
Default 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
BobGordon is offline   Reply With Quote
Old 07-04-2009, 11:45 AM   #2 (permalink)
Tutorial Author
 
Join Date: Jun 2009
Posts: 25
Default

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.
Bovn is offline   Reply With Quote
Old 07-04-2009, 11:50 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2008
Posts: 459
Default

Quote:
Originally Posted by BobGordon View Post
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.
NewiPhoneDeveloper is offline   Reply With Quote
Old 07-04-2009, 11:51 AM   #4 (permalink)
Registered Member
 
Join Date: Jul 2008
Posts: 459
Default

Quote:
Originally Posted by Bovn View Post
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
NewiPhoneDeveloper is offline   Reply With Quote
Old 07-04-2009, 11:54 AM   #5 (permalink)
.38 special tucked
 
Join Date: Apr 2009
Location: Brooklyn, NY
Posts: 133
Default

Quote:
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.
Your right - I've done both this:
1. Download Rename Xcode Project for Mac - Utility for renaming Xcode projects. MacUpdate Mac File Management Software Downloads
2. Doug Diego Blog Archive How To Rename an iPhone XCode Project
3. And what was said above - it always seems to involve a bit of tinker - someone (maybe me? heh) should just make a damn .bash script or something to do this.
mr-sk is offline   Reply With Quote
Old 07-04-2009, 11:58 AM   #6 (permalink)
New Member
 
Join Date: Jan 2009
Location: Minneapolis, MN
Posts: 5
Default

Quote:
Originally Posted by Bovn View Post
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.
BobGordon is offline   Reply With Quote
Old 07-04-2009, 11:59 AM   #7 (permalink)
Registered Member
 
mnemonic_fx's Avatar
 
Join Date: Jun 2008
Posts: 419
Default

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.
mnemonic_fx is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 158,480
Threads: 89,092
Posts: 380,125
Top Poster: BrianSlick (7,091)
Welcome to our newest member, premkumarmsc1
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:31 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0