Skip to content

Instantly share code, notes, and snippets.

@trilliwon
Created June 6, 2019 05:24
Show Gist options
  • Save trilliwon/afec6fbfb10470b9c71ae03ac68980e8 to your computer and use it in GitHub Desktop.
Save trilliwon/afec6fbfb10470b9c71ae03ac68980e8 to your computer and use it in GitHub Desktop.
increaseBuildNumber.sh
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