Apple does a pretty good job of explaining how to prepare the meta-data for an app submission in iTunes Connect, but it's not completely obvious how to prepare your actual build in XCode.

Assuming that you've already got Ad Hoc distribution working, it's not too hard. I was looking for advice and didn't find it, but I did find a question on StackOverflow that people had actually downrated and not really answered. So I figured out how to do it and added a proper answer. So without further adieu, rate me up on StackOverflow to give me wonderful wonderful karma, and view,

How to prepare a build for distribution in the App Store using the Program Portal, XCode, and iTunes Connect on StackOverflow