PDA

View Full Version : Build Tracking...




louden
Jul 15, 2008, 11:41 AM
Can anyone provide a pointer or two about how to start adding build numbers to an XCode project?

I'd assume this was done automatically, but can't seem to find what I'm looking for in the documentation.

Will XCode increment build numbers automatically?
If so, where is that stored?

Thanks for any pointers in advance...



SwampThingTom
Jul 16, 2008, 02:48 PM
There are two keys in the application's information property list file (info.plist) that are used to track build versions.

CFBundleShortVersionString is a release version number, which is what the App Store keys off of when you upload a new version. It's a string consisting of three integers separated by period in the form: major.minor.release.

There's also CFBundleVersion which the documentation says is a build version number, consisting of one or more integers separated by periods, that can be used to differentiate unreleased interim builds.

You have to change these yourselves by opening up info.plist and setting the values manually.

Look in the Runtime Configuration Guidelines document for more info and a description of all of the predefined property list keys.

louden
Jul 17, 2008, 01:26 AM
There are two keys in the application's information property list file (info.plist) that are used to track build versions.

CFBundleShortVersionString is a release version number, which is what the App Store keys off of when you upload a new version. It's a string consisting of three integers separated by period in the form: major.minor.release.

There's also CFBundleVersion which the documentation says is a build version number, consisting of one or more integers separated by periods, that can be used to differentiate unreleased interim builds.

You have to change these yourselves by opening up info.plist and setting the values manually.

Look in the Runtime Configuration Guidelines document for more info and a description of all of the predefined property list keys.

Excellent!
Any way to automate the updating of the pList file?

firewood
Jul 17, 2008, 03:26 AM
Excellent!
Any way to automate the updating of the pList file?

The Info.plist file appears to be XML in plain text. A perl script (or whatever your favorite scripting language is) should be able to string substitute an increment to the bundle version. Maybe an Applescript as well, and then tell XCode to build, if XCode is scriptable that way. Anyone know?