Posted by: bearc0025 | August 11, 2009

iPhone app version and build numbers

Inner Exception: iPhone app version and build numbers

The steps:

  1. In your Target Build properties set Versioning System to apple-generic
  2. Set Current Project Version to something (e.g., 1).
  3. In the project dir run: /Developer/usr/bin/agvtool next-version -all (this or similar needs to be run to inc the build number each time (e.g., part of your code commit))
  4. Access the build number as a string like: [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]

Tip: If you right-click on any of the properties in the Info.plist view, click Show Raw Keys/Values.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: