Skip to content

Instantly share code, notes, and snippets.

@kimar
Last active January 4, 2016 06:48
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 kimar/8583975 to your computer and use it in GitHub Desktop.
Save kimar/8583975 to your computer and use it in GitHub Desktop.
Git Commit-Hash based Build Versioning for your iOS Project
/usr/libexec/Plistbuddy -c "Set CFBundleVersion $(git log --pretty=format:'%h' -n 1)" "${PROJECT_DIR}/${INFOPLIST_FILE}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment