xcode script for automatically updating the build number

This is the build script I use for automatically updating the building number in xcode.
Note that the build number is updated each time you compile/build.

The script is installed by adding a “Run script” in the “Build Phases”:

buildscript

xcode script for automatically updating the build number