How to auto increment build number in Xcode -


i found many solutions , scripts on site, easiest solution increase build number in xcode is:

go build phases in targets section , add run script build phase:

auto increment build numbers in xcode

change shell /bin/bash , insert following script:

#!/bin/bash buildnumber=$(/usr/libexec/plistbuddy -c "print cfbundleversion" "$infoplist_file") buildnumber=$(($buildnumber + 1)) /usr/libexec/plistbuddy -c "set :cfbundleversion $buildnumber" "$infoplist_file" 

have fun! :)

i found tutorial on cocoa factory


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -