Skip to content

Instantly share code, notes, and snippets.

@stleamist
Created May 17, 2021 12:02
#!/bin/sh
PRODUCT_BUNDLE_VERSION=$(date "+%Y%m%d%H%M")
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${PRODUCT_BUNDLE_VERSION}" "${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}"
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${PRODUCT_BUNDLE_VERSION}" "${PROJECT_DIR}/${INFOPLIST_FILE}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment