Auto-Increment of Build and Version Numbers in Xcode

The feature of setting a version and build number in the xcode project settings is nice but it would be even nicer if it was a little bit moreā€¦ self-organizing. The following script updates build numbers and version automatically. Handy!