Ad Hoc App Packager script for iPhone apps
A little open source script that helps automate the process of creating Ad Hoc beta builds.
New: iPhone/iPad development course in Belgium in August.
If you're beta testing your iPhone apps, you will no doubt be familiar with Ad Hoc builds. These are the builds you send out to your testers along with a mobile provisioning profile that lets them test your app out on their iPhones and iPod Touches.
This involves doing a few repetitive things that I just wrote a script to automate.
Specifically, the Ad Hoc App Packager script automatically:
It was the last point that initially led me down the road to write this script: they don't tell you anywhere that you need to keep those dSYM files if you want to troubleshoot crash builds (the web's littered with people who find out at the worst possible time; when they actually need to do it and have long since overwritten the dSYM files).
To use:
./adhoc/packageI hope this little script makes your life easier (and if it does, I'll gladly let you fuel my App Store addiction by leaving me a tip.)
Get it from GitHub or download it now: adhoc.zip (5KB).
Update: I've merged bug fixes and non-zero exit codes for error conditions thanks to Rasheed Abdul-Aziz (thanks, man + GitHub fork queues rock!) I've also added a --silent (-s) option. If you use it, there will be no output on stdout unless there is an error (good for continuous integration systems or for using as part of a greater automated build process, etc.)
The Ad Hoc App Packager script for iPhone apps article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.A little open source script that helps automate the process of creating Ad Hoc beta builds.
Cool – I’ll give this a go.
I think this script breaks if the XCode project has a space in the name, e.g. IOError: [Errno 2] No such file or directory: ‘Test Project-Info.plist’
[...] November, I released a little open source Ad Hoc App Packager script for iPhone apps, raved about the Star Trek movie being released on USB, and blogged on Importing YouTube comments [...]
[...] out the Ad Hoc Packager script I released that is far better than the old bash [...]
Great script! It took me a bunch of attempts to get it to work correctly, so it’d be nice if you could make it so that if there’s an error, it deletes the version folder(ie. packages/1.001 etc.), so that I don’t have to do it manually every single time.
Also, I was getting some weird errors, I believe because my configuration name “Ad Hoc” has a space in it.
It works really well, and it resolve my “resources have been modified” problem.