Skip to content

Instantly share code, notes, and snippets.

@jamesnesfield
Created October 5, 2014 16:16
Show Gist options
  • Save jamesnesfield/db29bc945342bef91d94 to your computer and use it in GitHub Desktop.
Save jamesnesfield/db29bc945342bef91d94 to your computer and use it in GitHub Desktop.
increment xcode build number for each build/run
#!/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