Last active
August 29, 2015 14:06
-
-
Save Fogh/0e1325d7e7593234c005 to your computer and use it in GitHub Desktop.
Set version in Settings.bundle
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
cd "$PROJECT_DIR" | |
cd "$BUILT_PRODUCTS_DIR/$WRAPPER_NAME" | |
RELEASE_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Info.plist) | |
/usr/libexec/PlistBuddy -c "Set :PreferenceSpecifiers:0:DefaultValue $RELEASE_VERSION" Settings.bundle/Root.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment