Versioning via build settings?
Versioning via build settings?
- Subject: Versioning via build settings?
- From: Joachim <email@hidden>
- Date: Tue, 20 Dec 2005 23:17:22 -0800
Dear fellow XCoders,
I'd like to semi-automate the versioning of my app. My app consists
of more than one executable, so instead of editing several
Info.plists directly, I'd like to set the info in one place only.
I've tried to implement it via XCode's 2.2 build settings in a number
of ways, but none of the methods work. In all cases the relevant
section of the Info.plists look like this:
<key>CFBundleShortVersionString</key>
<string>$(MY_VERS_NO)</string>
<key>CFBundleVersion</key>
<string>$(MY_BUILD_NO)</string>
On the project level I've tried the following in the build settings:
Setting
Value
-------------------------------------------------------
Info.plist Preprocessor Definitions
MY_VERS_NO=$(My_Vers_No) MY_BUILD_NO=$(My_Build_No)
My_Vers_No
1.2.3
My_Build_No
321
The XCode generated Info.plists end up with empty values for the two
keys. I've also tried to set the values to more directly, i.e.
MY_VERS_NO=1.2.3 MY_BUILD_NO=321, but with the same result.
I've also tried these settings...
Setting
Value
-------------------------------------------------------
Preprocess Info.plist File
√
Info.plist Preprocessor Prefix File
version.pch
...with a version.cph file containing the two values as #define
statements, but this gives the same result; empty string values.
Can anybody tell me what I should do instead?
Thanks in advance,
Joachim _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden