Created
November 3, 2016 11:46
-
-
Save goodmorningcody/7b1340322ddcf3cdbb3890c46ea69916 to your computer and use it in GitHub Desktop.
Xcode Automate Versioning Script with Git Revision Head
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
revisionString="$(git rev-parse HEAD)" | |
versionString="${revisionString:0:7}" | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $versionString" "${PROJECT_DIR}/${INFOPLIST_FILE}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment