• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to change an application's name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to change an application's name?


  • Subject: Re: How to change an application's name?
  • From: Scott Tooker <email@hidden>
  • Date: Tue, 14 Mar 2006 11:21:36 -0800

In the Properties tab of the target inspector, you'll want to set the "Executable" to $(EXECUTABLE_NAME). By default, $(EXECUTABLE_NAME) is based on $(PRODUCT_NAME), so any changes you make to $(PRODUCT_NAME) will be reflected there.

With this change the proper app name will be used in most places (except for individual menu items underneat the application menu if you are using nibs).

If you create a new application project from the templates (Cocoa or Carbon), it is set up properly (so you can look at it for guidance).

We are aware of the fact that changing the product name doesn't keep the executable name in sync and it's something that we want to fully fix in a future version of Xcode.

Scott



On Mar 14, 2006, at 8:24 AM, Bill Monk wrote:

As far as I've seen, it is *not* sufficient to change Product Name in the target's build settings: The "Executable" field in the target's Properties must also be changed. If these do not agree, attempting to launch the app in Finder produces the following alert: "You cannot open the application 'Foo' because it may be damaged or incomplete."

Also, launching such an app from within Xcode (via Cmd-R) produces strange results: the app launches, but does not come to the front. And if you bring it to the front, its menu bar is nowhere to be seen - instead Xcode's menubar is active, and any command keys issued will invoke Xcode menu commands - i.e. Cmd-Q offers to quit Xcode, not the app whose window is frontmost.

So, changing one or the other of the Target's Build Settings- >Product Name and Properties->Executable produces a broken app. At least it does here (Xcode 2.2.1). The two values must be kept in sync. Why on earth Xcode doesn't take care of this itself is a mystery. As is the purpose of having two different settings which cannot differ.

On Mar 13, 2006, at 2:07 PM, Matt Neuburg <email@hidden> wrote:

I believe it suffices to Get Info on the Target and change the Product Name.
If that doesn't appear to be working, make sure you are doing it for all
configurations. m.
On Sun, 12 Mar 2006 21:13:54 +1300, Robert Purves <email@hidden >
said:

In XCode 2.2 I have a project that builds an application MyTestApp.app with executable MyTestApp in its MacOS folder. How do I change the settings so that the built application will be named (for example) MyGreatApp.app?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users 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. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: How to change an application's name? (From: Bill Monk <email@hidden>)

  • Prev by Date: Re: How to change an application's name?
  • Next by Date: Re: "Open Quickly" help!
  • Previous by thread: Re: How to change an application's name?
  • Next by thread: Re: How to change an application's name?
  • Index(es):
    • Date
    • Thread