Skip to content

Instantly share code, notes, and snippets.

@waynezhang
waynezhang / gist:1205502
Created September 9, 2011 04:37
Add git tag info to Xcode build automatically
version=`git describe --tag`
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $version" $PRODUCT_SETTINGS_PATH
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $version" $PRODUCT_SETTINGS_PATH