iOS versioning with agvtool

 Posted on Jul 16, 2014

When search around how to update version number of an iOS project, most of the result is about how to update the info.plist file using scripts.

Actually, apple provides a command line tool called agvtool to update the version numbers for us. It’s simple and gets the task done.

The thing is, before you know it, it may not be obvious about how to start. So here are the steps.

Steps

$ agvtool what-version
$ agvtool new-version -all new_version_number
$ agvtool what-marketing-version
$ agvtool new-marketing-version new_marketing_version_number

If you want to increase the version number to the next highest integral value, use agvtool bump -all instead.

References