Created
November 11, 2012 11:00
-
-
Save rsobik/4054568 to your computer and use it in GitHub Desktop.
Update CFBundleShortVersionString String
This file contains hidden or 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
# Use Xcode's copy of the Git binary | |
GIT=`xcrun -find git` | |
## Use the last annotated tag as CFBundleShortVersionString | |
GIT_TAG=`${GIT} describe --tags` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${GIT_TAG}" "${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Append a "Run Script" build phase to the application's target. The script shall contain the shell script shown above.