• 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: com.yourcompany
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: com.yourcompany


  • Subject: Re: com.yourcompany
  • From: Jon Davis <email@hidden>
  • Date: Thu, 28 Aug 2008 04:10:59 -0700


On Aug 28, 2008, at 1:08 AM, Simon Wilson wrote:

Hi Jon,

Xcode 3's templates are located in:

"/Developer/Library/Xcode/Target Templates"

Simon

Thanks.

Editing the templates had no effect in this regard, not until I edited the actual .plist file at ..

/Developer/Library/Xcode/Project Templates/Application/Cocoa Application/Info.plist

.. and ..

/Developer/Platforms/XXXX.platform/Developer/Library/Xcode/Project Templates/Application/XXXX Application/Info.plist

Incidentally, I've found a lot of Application directories in there with .plist files that I had to edit, I was thinking, why not just replace com.yourcompany with ${COMPANYBUILDERPREFIX}?

I executed the command in Terminal:

defaults write com.apple.Xcode.plist PBXCustomTemplateMacroDefinitions '{ "COMPANYBUNDLEPREFIX" = "com.actualcompanyname.";}'

.. where com.actualcompanyname was actually my own prefix. I then changed the .plist files mentioned above to use that variable instead of a literal value.

<key>CFBundleIdentifier</key>
<string>${COMPANYBUNDLEPREFIX}${PRODUCT_NAME:identifier}</ string>


But, I'm not quite sure how to test this at runtime; It remains a variable name at design time. It builds and runs but then so it also does if I add a junk character in the variable name.

Assuming this works (??), if Apple might be on this list, here's my nomination / vote for this change to be made in Xcode permanently, and for the variable value to be set in the Xcode preferences dialog along with ORGANIZATIONNAME.

Thanks,
Jon
_______________________________________________
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: com.yourcompany
      • From: Simon Wilson <email@hidden>
References: 
 >Re: com.yourcompany (From: Jon Davis <email@hidden>)
 >Re: com.yourcompany (From: Simon Wilson <email@hidden>)

  • Prev by Date: Re: com.yourcompany
  • Next by Date: Re: com.yourcompany
  • Previous by thread: Re: com.yourcompany
  • Next by thread: Re: com.yourcompany
  • Index(es):
    • Date
    • Thread