Skip to content

Instantly share code, notes, and snippets.

@anjerodesu
Created February 26, 2014 09:48
Show Gist options
  • Save anjerodesu/9226758 to your computer and use it in GitHub Desktop.
Save anjerodesu/9226758 to your computer and use it in GitHub Desktop.
Auto increment build number
#!/bin/bash
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment