Build Tracking...

Discussion in 'iOS Programming' started by dgdosen, Jul 15, 2008.

  1. macrumors 65816

    dgdosen

    Joined:
    Dec 13, 2003
    Location:
    Seattle
    #1
    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...
     
  2. macrumors member

    Joined:
    Jul 12, 2008
    Location:
    Fairfax, VA
    #2
    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.
     
  3. thread starter macrumors 65816

    dgdosen

    Joined:
    Dec 13, 2003
    Location:
    Seattle
    #3
    Excellent!
    Any way to automate the updating of the pList file?
     
  4. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #4
    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?
     

Share This Page