Skip to content

Instantly share code, notes, and snippets.

@luxinyan
Last active August 29, 2015 14:04
Show Gist options
  • Save luxinyan/bb76bdc24364eda2830f to your computer and use it in GitHub Desktop.
Save luxinyan/bb76bdc24364eda2830f to your computer and use it in GitHub Desktop.
Xcode Increase Build Number
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