Created
April 9, 2015 23:00
-
-
Save scottdelly/6b8e648a4ac403cfca14 to your computer and use it in GitHub Desktop.
Xcode Automatic CFBundleVersion Incrementing
This file contains 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
formatDate=$(date "+%Y%m%d%H%M%S") | |
buildNumber="${formatDate}" | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${buildNumber}" "${PROJECT_DIR}/${INFOPLIST_FILE}" | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${buildNumber}" "${SRCROOT}/<YOUR WATCHKIT APP FOLDER>/Info.plist" | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${buildNumber}" "${SRCROOT}/<YOUR WATCHKIT EXTENSION FOLDER>/Info.plist" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment