-
-
Save jacobvanorder/037c51661d584bb111c3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if [ "${CONFIGURATION}" = "Release" ]; then | |
CFBundleVersion=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}") | |
CFBundleVersion=$(($CFBundleVersion + 1)) | |
echo $CFBundleVersion | |
$PlistBuddy -c "Set :CFBundleVersion $CFBundleVersion" "$buildPlist" | |
$PlistBuddy -c "Set :CFBundleVersion $CFBundleVersion" "$INFOPLIST_FILE" | |
$PlistBuddy -c "Set :CFBundleVersion $CFBundleVersion" "${DWARF_DSYM_FOLDER_PATH}/${WRAPPER_NAME}.dSYM/Contents/Info.plist" | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $CFBundleVersion" "${PROJECT_DIR}/${TARGET_NAME}/Info.plist" | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $CFBundleVersion" "${PROJECT_DIR}/${TARGET_NAME} Watch App/Info.plist" | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $CFBundleVersion" "${PROJECT_DIR}/${TARGET_NAME} WatchKit Extension/Info.plist" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment