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
#!/bin/bash | |
# taken from blog post: http://www.mokacoding.com/blog/automatic-xcode-versioning-with-git/ | |
# Automatically sets version of target based on most recent tag in git | |
# Automatically sets build number to number of commits | |
# | |
# Add script to build phase in xcode at the top of the chain named "set build number" | |
# put this script in the root of the xcode project in a directory called scripts (good idea to version control this too) | |
# call the script as $SRCROOT/scripts/set_build_number.sh in xcode |