Apple demand the build number on each app version must be higher than previous one. I found this script to auto increase build number based on git log history entry number, and have been using it for quite a long time, very handy.
the only ting to remember is always do a push before build.
There is another way to increase build number by creating a local cfg file to save this number and increase by perl script. Found on hockeyapp.