Skip to content

Instantly share code, notes, and snippets.

@wagyu298
Created October 23, 2016 07:08
Show Gist options
  • Save wagyu298/0f8e85d8fc5f24d6ce9454b9b9600524 to your computer and use it in GitHub Desktop.
Save wagyu298/0f8e85d8fc5f24d6ce9454b9b9600524 to your computer and use it in GitHub Desktop.
APP_VERSION=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" MyApp/Info.plist
BUILD_NUMBER=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" MyApp/Info.plist
/usr/libexec/PlistBuddy \
-c "Set :CFBundleShortVersionString $APP_VERSION" \
-c "Set :CFBundleVersion $BUILD_NUMBER" \
MyExtension/Info.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment