Skip to content

Instantly share code, notes, and snippets.

Avatar

Grant Davis gdavis

View GitHub Profile
@gdavis
gdavis / gist:2353296
Created Apr 10, 2012
XCode Project Build Number Auto Increment Script
View gist:2353296
# Auto Increment Version Script
# This script will increment the build number by 1
# when running a configuration other than Debug and Release
# while not on intel architecture
arch=${ARCHS:0:4}
conf=${CONFIGURATION}
if [ "$conf" != "Debug" ] && [ "$conf" != "Release" ] && [ "$arch" != "i386" ]
then
buildPlist=${INFOPLIST_FILE}
buildVersion=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $buildPlist)
You can’t perform that action at this time.