Re: Versioning via build settings?
Re: Versioning via build settings?
- Subject: Re: Versioning via build settings?
- From: Daniel Jalkut <email@hidden>
- Date: Wed, 21 Dec 2005 09:27:56 -0500
Joachim - I haven't used the Info.plist Preprocessor functionality
for this, but you can uses Xcode's build setting variables directly
in the Info.plist, as well. I describe this process in some detail
on my blog:
http://www.red-sweater.com/blog/?p=32
Hope this helps.
Daniel
On Dec 21, 2005, at 2:17 AM, Joachim wrote:
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:
sweater.com
This email sent to email@hidden
_______________________________________________
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