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

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -