OTA AdHoc distribution - how to build an IPA from command line?
===

I'd like to script my building process. 

However - I need to create a IPA for enterprise in order to distribute the app over the air for my testers. 

I followed [this article][1]'s directions, I can create the ipa and plist with some clicking in the Xcode ;) But - I wanted to have it scripted. The real question is how to create the IPA correctly (I need to embed the .mobileprovision file in it, right?) and how to generate the .plist file? 

For the plist, should I do this by hand, or xcode would generate it for me if asked nicely? 


  [1]: http://altf.wordpress.com/2011/05/18/how-to-distribute-in-house-software-to-your-users-wirelessly/