Created
February 22, 2017 16:26
-
-
Save jemmons/13fee108ab6f794c39aab3a2799e8f2b to your computer and use it in GitHub Desktop.
Build number in Xcode build script.
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
#!/bin/bash | |
if [ "${CONFIGURATION}" != "Debug" ] | |
then | |
buildNumber=$(date +"%Y%m%d%H%M") | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" ${INFOPLIST_FILE} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment