• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using Xcode for automated daily builds; how do I generate version info?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Using Xcode for automated daily builds; how do I generate version info? (From: "Michael A. Crawford" <email@hidden>)
 >Re: Using Xcode for automated daily builds; how do I generate version info? (From: Alexander von Below <email@hidden>)

  • Prev by Date: Undefined Symbols
  • Next by Date: 3.2 builds grind to a halt
  • Previous by thread: Re: Using Xcode for automated daily builds; how do I generate version info?
  • Next by thread: Re: Xcode Tiger to Leopard duplicate symbols mystery
  • Index(es):
    • Date
    • Thread