Created
August 12, 2014 20:38
-
-
Save xhacker/b0ecb5e88d1d5121e586 to your computer and use it in GitHub Desktop.
Automatically Increase Build Version with Build Phase in Xcode, from http://blog.projectrhinestone.org/automatically-increase-build-version-with-build-phase-in-xcode/
This file contains 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
if [ "${CONFIGURATION}" = "Release" ]; then | |
path="$(pwd)/${INFOPLIST_FILE}" | |
build=$(defaults read $path CFBundleVersion) | |
defaults write $path CFBundleVersion $((build+1)) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment