Skip to content

Instantly share code, notes, and snippets.

@50percentgrey
Created December 5, 2019 19:30
Show Gist options
  • Save 50percentgrey/65912b34cd456b196cb9272f2bfc835c to your computer and use it in GitHub Desktop.
Save 50percentgrey/65912b34cd456b196cb9272f2bfc835c to your computer and use it in GitHub Desktop.
Increment Build - Build Phases
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")
buildNumber=$(($buildNumber + 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