Build script for iPhone ad-hoc distribution

Put this script in the root of your project directory, tweak for your project,
and run it to build your iPhone app for ad-hoc distribution.

In case the script above isn’t showing up for you, get it from here.