Created
October 4, 2012 16:44
-
-
Save beny/3834854 to your computer and use it in GitHub Desktop.
Xcode build number auto increment
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
conf=${CONFIGURATION} | |
if [ $conf != "Debug" ] | |
then | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" ${PROJECT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}-Info.plist) | |
buildNumber=$(($buildNumber + 1)) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" ${PROJECT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}-Info.plist | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment