Auto-Incrementing Build Number Script

I got this from somewhere I can’t remember. I’ve been using it a while and it works very well. I have it setup so that it will happen whenever I archive a new build for beta or release. You’ll want to change those configuration names to whatever your configuration names are in your project.

Add a “run script” phase to your targets build phases with this script and put it just below “Link Binary With Libraries”.