• 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: apple-generic Versioning?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: apple-generic Versioning?


  • Subject: Re: apple-generic Versioning?
  • From: Chris Hanson <email@hidden>
  • Date: Sun, 10 Apr 2005 15:47:43 -0700

On Apr 10, 2005, at 12:27 PM, Ness Joumaa wrote:
I remember once seeing an article somewhere on ADC that covered the way Apple versioned their apps, and I wanted to use the same versioning technique they do...does anyone have a link to that article?

I don't have a URL for you, but agvtool does have a manpage.

Here's a quick way to get started with it:

* Set your Versioning System (VERSIONING_SYSTEM) to "apple-generic".

* Set your Current Project Version (CURRENT_PROJECT_VERSION) to some floating point value that you'll increment every build. You could just start at 1, unless you already have builds out there with other numbers.

This will generate and build a source file automatically that defines two globals whenever you build your project. One is a double corresponding to CURRENT_PROJECT_VERSION, the other is a string. The file is a derived source file; it won't be added to your project, but it will be built with it.

If you're building a framework, there are other build settings you'll probably want to set as well, such as Current Version (DYLIB_CURRENT_VERSION), Compatibility Version (DYLIB_COMPATIBILITY_VERSION), and VERSION_INFO_PREFIX.

To update the version number, you can use agvtool next-version or agvtool new-version.

  -- 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: 
 >apple-generic Versioning? (From: Ness Joumaa <email@hidden>)

  • Prev by Date: Re: API reference can't find TrackControl
  • Next by Date: Linking a Dynamic Library into a XCode Project
  • Previous by thread: apple-generic Versioning?
  • Next by thread: Linking a Dynamic Library into a XCode Project
  • Index(es):
    • Date
    • Thread