Skip to content

Instantly share code, notes, and snippets.

@NTruchaud
Created March 12, 2019 10:15
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 NTruchaud/6da7f5a20a82d677815de00352dc63ae to your computer and use it in GitHub Desktop.
Save NTruchaud/6da7f5a20a82d677815de00352dc63ae 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