Skip to content

Instantly share code, notes, and snippets.

@orgmir
Created February 16, 2017 23:16
Show Gist options
  • Save orgmir/d2cd6e8d1b767449df92dcc8151a2294 to your computer and use it in GitHub Desktop.
Save orgmir/d2cd6e8d1b767449df92dcc8151a2294 to your computer and use it in GitHub Desktop.
Increment Build Number Run Scrip
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