Skip to content

Instantly share code, notes, and snippets.

@flashlib
Created October 17, 2013 02:57
Show Gist options
  • Save flashlib/7018577 to your computer and use it in GitHub Desktop.
Save flashlib/7018577 to your computer and use it in GitHub Desktop.
version=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $PRODUCT_SETTINGS_PATH`
version=`expr $version + 1`
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $version" $PRODUCT_SETTINGS_PATH
#/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $version" $PRODUCT_SETTINGS_PATH 这行代码会让version也自增,一般不需要
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment