Thanks to a tip from @adamjernst, and contrary to my suggestion yesterday to use PlistBuddy, this is a post about a much better way to increment build numbers with agvtool
One day I should read the entire man pages front to back because I've never heard of agvtool
. It is however, the Apple provided "generic versioning tool for Xcode projects". If that sounds exactly like what's needed, it is.
I'm largely following this great walkthrough in setting up agvtool by @th_in_gs.
Using agvtool
consists primarily of:
CFBundleShortVersionString
to the marketing version (ie: 1.0.0)CFBundleVersion
to the integer build numberBuild Settings
->Versioning
->Versioning System
to Apple-Generic
for all targetsBuild Settings
->Versioning
->Current Project Version
to the CFBundleVersion
value for all targets/usr/bin/agvtool next-version -all