Last active
June 14, 2018 12:01
-
-
Save shashankpali/6d1489f748dbc540c1ab1bfb257b8d1b to your computer and use it in GitHub Desktop.
Add it in run script
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
PLIST="${INFOPLIST_FILE}" | |
PLB=/usr/libexec/PlistBuddy | |
LAST_NUMBER=$($PLB -c "Print CFBundleVersion" "$PLIST") | |
NEW_VERSION=$(($LAST_NUMBER + 1)) | |
$PLB -c "Set :CFBundleVersion $NEW_VERSION" "$PLIST" | |
// | |
add for extension | |
$PLB -c "Set :CFBundleVersion $NEW_VERSION" "$SRCROOT/SGSharedExtension/Info.plist" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment