You need to have an iOS device connected to your computer. Next, go to the Product menu at the top and select Archive. This will archive the current build and show you all of your Archives in the Organizer. In the Organize, press Export, and select the appropriate option (My guess is you want for Apple Store Deployment). This will place the ipa file onto your desktop.