Skip to content

Instantly share code, notes, and snippets.

@ricobeck
Created November 8, 2013 14:37
Show Gist options
  • Save ricobeck/7371887 to your computer and use it in GitHub Desktop.
Save ricobeck/7371887 to your computer and use it in GitHub Desktop.
Build Version Script Phase
buildNumber=`expr $(git rev-list HEAD | wc -l) + 1`
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment