Re: Automate build numbers
Re: Automate build numbers
- Subject: Re: Automate build numbers
- From: Jerry Krinock <email@hidden>
- Date: Wed, 23 Aug 2006 06:13:46 -0700
- Thread-topic: Automate build numbers
on 06/08/19 10:09, Matt Neuburg at email@hidden wrote:
> One nice thing is that it is now possible to preprocess the info.plist, so
> that it takes values from the build environment. I now have e.g.
>
> <key>CFBundleVersion</key>
> <string>MYVERSION</string>
>
> where MYVERSION is set under INFOPLIST_PREPROCESSOR_DEFINITIONS. This has
> made my life a lot easier than it used to be. m.
It looks so simple. But it doesn't work for me. I'm using Xcode 2.3.
In my Info.plist, I set:
<key>CFBundleShortVersionString</key>
<string>RELEASE_VERSION</string>
...
<key>CFBundleVersion</key>
<string>RELEASE_VERSION</string>
In my Target Build Settings, I do as you and the docs say, setting
RELEASE_VERSION=3.10.
In my Build Log, I can see that my Target Build Settings are as expected:
setenv INFOPLIST_EXPAND_BUILD_SETTINGS YES
...
setenv INFOPLIST_PREPROCESS YES
setenv INFOPLIST_PREPROCESSOR_DEFINITIONS RELEASE_VERSION=3.10
But it "just doesn't work" for me:
Expected Result in built Info.plist: version should be 3.10
Actual Result in built Info.plist: version is RELEASE_VERSION
What stupid thing did I do wrong?
Thanks,
Jerry
_______________________________________________
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