Last active
August 29, 2015 14:02
-
-
Save mtrovilho/56cf3f9d792a47ae1637 to your computer and use it in GitHub Desktop.
Xcode build phase to set Bundle Version from git commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run Script Build Phase | |
BuildPlist=${INFOPLIST_FILE} | |
CFBundleVersion=$(git rev-parse --short HEAD) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $CFBundleVersion" "${BuildPlist}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment