Last active
December 25, 2015 21:09
-
-
Save julianjames/7040290 to your computer and use it in GitHub Desktop.
We create a unique build number by taking the date and time and creating a hexadecimal version so as to not make it too obvious. This is written to project plist file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildNumber=`/bin/date +%Y%m%d%H%M%S` | |
hexNumber=`echo "obase=16;ibase=10; $buildNumber" | bc` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $hexNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment