Skip to content

Instantly share code, notes, and snippets.

@akramhussein
Last active August 29, 2015 14:10
Show Gist options
  • Save akramhussein/432d84059f3a3cce9720 to your computer and use it in GitHub Desktop.
Save akramhussein/432d84059f3a3cce9720 to your computer and use it in GitHub Desktop.
XCode project - Increment build version number
#!/bin/sh
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