Re: Using Xcode for automated daily builds; how do I generate version info?
Re: Using Xcode for automated daily builds; how do I generate version info?
- Subject: Re: Using Xcode for automated daily builds; how do I generate version info?
- From: Chris Espinosa <email@hidden>
- Date: Tue, 29 Sep 2009 09:39:15 -0700
On Sep 28, 2009, at 12:37 PM, Alexander von Below wrote:
I have created something from scratch here.
There is the Apple Generic Version Tool, agvtool (1), but either I
am too stupid, or it does not work for my case
Alex
Am 28.09.2009 um 19:55 schrieb Michael A. Crawford:
My first question is how do I handle the build number and version
info? Where does it come from? Does Xcode help with this or do I
have to create something from scratch?
You'd do something from scratch, depending on your configuration and
needs.
For example, you could include something like this in your Info.plist:
<key>CFBundleVersion</key>
<string>$CHECKOUT_VERSION</string>
and make sure that "Expand Build Settings in Info.plist File" is
checked in the target.
Then in your automated build script, you could invoke xcodebuild with
something like:
xcodebuild CHECKOUT_VERSION=`svn info|awk '$1=="Revision:" {print $2}'`
At build time, it will get the Subversion checkout number from the
project directory, pass that into xcodebuild in a build setting, then
expand that build setting when writing the Info.plist into your
application or framework bundle.
Of course, if you're not using Subversion or you want the checkout
version in a different Info.plist setting then you'd hook it up
differently.
Chris
_______________________________________________
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