Skip to content

Instantly share code, notes, and snippets.

@fjcaetano
Created September 3, 2015 22:33
Show Gist options
  • Save fjcaetano/f67fc972988003c55cd9 to your computer and use it in GitHub Desktop.
Save fjcaetano/f67fc972988003c55cd9 to your computer and use it in GitHub Desktop.
Xcode Version Bumper
bN=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")
bN=$(($bN + 1))
bN=$(printf "%d" $bN)
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $bN" "${PROJECT_DIR}/${INFOPLIST_FILE}"
@fjcaetano
Copy link
Author

To be run in the Archive scheme as a Post-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment