Created
September 9, 2011 04:37
-
-
Save waynezhang/1205502 to your computer and use it in GitHub Desktop.
Add git tag info to Xcode build automatically
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
version=`git describe --tag` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $version" $PRODUCT_SETTINGS_PATH | |
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $version" $PRODUCT_SETTINGS_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add this to build phase in Xcode