• 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: Automatic build number incrementing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatic build number incrementing


  • Subject: Re: Automatic build number incrementing
  • From: Matt Gillette <email@hidden>
  • Date: Fri, 27 May 2005 12:32:49 -0700

Hi,

I've just retried all the old solutions from the list archives, using Perl, shell scripts & Apple scripts, but none of them work with Xcode 2.0, or don't work satisfactorily - i.e. I want to increment CFBundleVersion (and possibly CFBundleShortVersionString & CFBundleGetInfoString), not some arbitrary constant in some source file.

Not sure if you know this, but you can put a variable into CFBundleShortVersionString, and then set that variable in the XCode build settings.


For example, I have CFBundleShortVersionString = $(VERSION_STRING)

and the $(VERSION_STRING) is a variable in the xcode target build setting that I increment with a perl script in my makefile (i use xcodebuild). I haven't tried with 2.0 but something very similar should work. And if agvtool works then you can just use that variable. Agvtool in 1.5 wouldn't allow a major.minor.revision version and the marketing-version never worked :(.

Matt

_______________________________________________
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


References: 
 >Automatic build number incrementing (From: email@hidden)
 >Re: Automatic build number incrementing (From: Dave Camp <email@hidden>)

  • Prev by Date: Re: Apple guys: is the XCode generated CD accessor code decent?
  • Next by Date: Re: Bridging object expanding
  • Previous by thread: Re: Automatic build number incrementing
  • Next by thread: Best Way to Access Separate Core Data Document
  • Index(es):
    • Date
    • Thread