• 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: Property List Compiler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Property List Compiler


  • Subject: Re: Property List Compiler
  • From: Nick Nallick <email@hidden>
  • Date: Wed, 4 Jan 2006 07:40:06 -0700


On Dec 31, 2005, at 12:42 PM, Nick Nallick wrote:

Is there anything in Xcode equivalent to CodeWarrior's property list compiler? I've found the target info properties tab but I miss the ability to set the version string in one place and have it automatically used in the copyright string, version fields, etc.

In case there are any other CW refugees out there with a similar problem here's the solution I came up with to reduce my version string to a single location.


1) In the project or target build settings (I'm not sure if one is preferable to the other) add two custom items. For example:

PRODUCT_VERSION        1.0
COPYRIGHT_NOTICE        ($PRODUCT_VERSION), Copyright 2006, My Company

2) In the target's properties settings (select the target, get info, and choose the "Properties" tab) set the "Version" field to ($PRODUCT_VERSION).

3) In the Info.plist file set the value of the CFBundleGetInfoString key to: <string>$(COPYRIGHT_NOTICE)</string>
If you have an NSHumanReadableCopyright key it should have the same value.


This assumes the copyright notice isn't localized.

Now any change to the PRODUCT_VERSION build setting will propagate through to the version and copyright entries of the Info.plist file. It looks like other things are possible by enabling plist preprocessing in the build settings but I haven't needed that.

Nick
_______________________________________________
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: Property List Compiler
      • From: Scott Ribe <email@hidden>
    • Re: Property List Compiler
      • From: Bernard Desgraupes <email@hidden>
  • Prev by Date: Re: Code Coverage tools on Mac side
  • Next by Date: Re: Property List Compiler
  • Previous by thread: Re: Property List Compiler
  • Next by thread: Re: Property List Compiler
  • Index(es):
    • Date
    • Thread