Skip to content

Instantly share code, notes, and snippets.

@xhacker
Created August 12, 2014 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xhacker/b0ecb5e88d1d5121e586 to your computer and use it in GitHub Desktop.
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/
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