I’ve been using a simple script that would increase my app’s build numbers on every build in Xcode for a while now. This worked fine but had a major downside: It did not support working on a team.
So I had the idea to write a script that would talk to a server, store and increase the build number there, pull it back and write it to my project file locally. Tonight a had some time to do this.
What came out of this process is a PHP script that basically takes a unique string and returns a new build number. It uses a plain text file in JSON format on my server to store these value pairs. For the easier integration into Xcode I also adapted my old build script to get the number from the server instead of the original plist file.
If you’re interested you can find these scripts on GitHub.