I was responsible for compiling the iOS App for my companny. It was a pain to setup so I documented my steps in hopes of helping others. May my pain save you some.
Full disclosure, I wrote this a while back. Within a two year span, changes with Xcode required me to change how I compiled code. It does address some of the more confusing parts of releasing an Enterprise app on iOS.