Created
December 20, 2011 12:17
-
-
Save below/1501383 to your computer and use it in GitHub Desktop.
Simple Script to set a version number in the Info Plist
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
# This needs to go into a script build phase prior to "Copying resources" | |
# Set the version from version.txt | |
product_version=`cat version.txt` | |
# Instead of version.txt, you can use whatever your filthy heart desires | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion \"$product_version\"" "$TARGET_BUILD_DIR/$INFOPLIST_PATH" | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment