Re: Property List Compiler
Re: Property List Compiler
- Subject: Re: Property List Compiler
- From: Bernard Desgraupes <email@hidden>
- Date: Wed, 04 Jan 2006 17:06:31 +0100
Nick Nallick wrote:
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.
As mentioned by another post, the PList Compiler project is a script
which handles everything à la CodeWarrior: it supports plc files,
localized strings (with ploc files), Unicode characters, all the XCode
internal variables, conditional macros, etc. It also reads include files.
It is hosted by SourceForge:
http://sourceforge.net/projects/plistcompiler
HTH
Bernard
_______________________________________________
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