[SOLVED] Changing the Project Name in XCode
[SOLVED] Changing the Project Name in XCode
- Subject: [SOLVED] Changing the Project Name in XCode
- From: email@hidden
- Date: Wed, 24 Aug 2005 23:37:58 +0000
Ok, I finally got it all to work. So if you want to change the project/application name, do the following:
1. Rename the project folder (not required, but helps)
2. Rename the .xcodeproj file (or whatever you project file is)
Change values in the Info.plist
a. CFBundleExecutable
b. CFBundleIdentifier
c. CFBundleName
d. CFBundleHelpBookFolder
e. CFBundleHelpBookName
3. Change the Target information
a. Expand "Targets", select executable, Get Info, change the name under the "General" tab
b. Change the tab to "Build", set configuration to "All Configurations", change "Product Name" to the new name
4. Change the help folder group in the project
5. Change the <meta name... tag to the new name
6. Clean all targets
**Other information that I found helpful when dealing with Apple Help:
Another big headache that many people suffer from is Apple Help Viewer showing only a blank page, and generally not accepting the Help Book they've authored and referenced in the Info.plist's CFBundleHelpBookFolder and CFBundleHelpBookName keys. Clearly Help Viewer isn't as robust/forgiving as people would like (me included). The key gotchas here are:
Make sure you're not using UTF-8 encoding in your HTML (I could have sworn I read somewhere it would work but I only got it working once I removed my <meta http-equiv="content-type" content="text/html;charset=utf-8" /> tag.
Only use the bare minimum <meta name=... tags that are shown in Apple's documentation. Additional tags complicate the matter. I stick to AppleTitle (just for your index page and no other pages!), AppleIcon, AppleAbstract, keywords, description and copyright.
Turn on the detailed logging option in the Help Indexer tool - it'll tell you when your HTML doesn't validate and thus causes problems with AppleHelp.
Sounds silly, but always re-index your entire help folder once you've made any changes to your help HTML.
Always and without fail delete ~/Library/Caches/com.apple.helpui/ every time you rebuild your application, and always clean your target before builds.
>> Above information from: http://www.adeward.com/go/Cocoa
Thanks again for all the help,
Kris
-------------- Original message --------------
> Thanks for all the help. I think I am 90% there. The app runs, the menu bar
> title is correct. The last problem I am having is with the Apple Help.
>
> What I have learned:
> In the Info.plist I can't change CFBundleExecutable to the new name, or it
> doesn't appear in the dock and the menu doesn't show up.
>
> What is happening now:
> I open the help and the help viewer opens but it is blank. My help setup
> - The help folder in my project has the new name
> - the >
> This is my first time mucking with help, so I may just be doing something
> stupid. Thanks again for the help.
>
> Kris
>
> -------------- Original message --------------
>
> >
> > Am 24.08.2005 um 18:10 schrieb Kenny Leung:
> >
> > > On Aug 24, 2005, at 9:03 AM, email@hidden wrote:
> > >
> > >> Is there any easy way to change the name of your project in
> > >> XCode. I want to rename my application. I can make manual
> > >> changes to the Windows and such, but the Main title bar will not
> > >> change. In addition, after changing everything in my on-line help
> > >> - it no longer displays.
> > >
> > > I fought with this for a long time too. You have to change the
> > > value for "CFBundleName" in InfoPlist.strings.
> > >
> >
> > Yes, I remember, it was somewhat terrible. You may have to make sure
> > your executable name is still matching, and other classes in the nib
> > are not adversely affected.
> >
> > It is tricky, a bit.
> >
> > Hth
> >
> > Alex
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Cocoa-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden