• 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: Matt Neuburg <email@hidden>
  • Date: Tue, 14 Mar 2006 08:37:46 -0800
  • Thread-topic: How to change an application's name?

On or about 3/14/06 8:24 AM, thus spake "Bill Monk" <email@hidden>:

> 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.

Well, let me describe my test procedure in a little more detail. See if you
can replicate it.

(1) I started up Xcode and created a new project, a Cocoa app, called
"mattNeuburg". I built and ran the app, just for kicks.

(2) I did a Get Info on the target and changed the Product Name to
"billMonk".

(3) I did a Clean All, and then built and ran the app. It ran fine from
within Xcode.

(4) I changed the build style to Release, did a Clean All, and built the
app. In the Finder, I opened the app. It ran fine. Its name was billMonk
both in the Finder and at the top of the app's own menu

I can guess what causes the difference between our results. I tested with a
new project, built from the latest template. You tested (I'm guessing) with
an old existing project, built from an older template; there, the executable
name is not automatically derived from the product name and
{EXECUTABLE_NAME} does not appear in the relevant build setting fields. m.

> 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?
>>>

--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide - Second Edition!
http://www.amazon.com/gp/product/0596102119
Take Control of Word 2004, Tiger, and more -
http://www.takecontrolbooks.com/tiger-customizing.html
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/



 _______________________________________________
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

  • Follow-Ups:
    • Re: How to change an application's name?
      • From: Bill Monk <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: How to change an application's name?
  • 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