Skip to content

Instantly share code, notes, and snippets.

@shashankpali
Last active June 14, 2018 12:01
Show Gist options
  • Save shashankpali/6d1489f748dbc540c1ab1bfb257b8d1b to your computer and use it in GitHub Desktop.
Save shashankpali/6d1489f748dbc540c1ab1bfb257b8d1b to your computer and use it in GitHub Desktop.
Add it in run script
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