Skip to content

Instantly share code, notes, and snippets.

@rnkyr
Created February 3, 2017 10:02
Show Gist options
  • Select an option

  • Save rnkyr/0a4b6acd716f97878d3663f7b9c34bd8 to your computer and use it in GitHub Desktop.

Select an option

Save rnkyr/0a4b6acd716f97878d3663f7b9c34bd8 to your computer and use it in GitHub Desktop.
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