parkerboundy.com
Xcode automatic build numbers

Here is a short Run-Script for Xcode. Automatically increments the build number, as well as saving the build date. You need to add a BuildNumber and BuildDate row to your Info.plist file before building. This is a modified version of this script.


buildPlist=${INFOPLIST_FILE}
BuildNumber=$(/usr/libexec/PlistBuddy -c "Print BuildNumber" $buildPlist)
BuildNumber=$(($BuildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :BuildNumber $BuildNumber" $buildPlist
BuildDate=$(date)
/usr/libexec/PlistBuddy -c "Set :BuildDate $BuildDate" $buildPlist
Blog comments powered by Disqus