|Table of Contents|
In this section, you will learn how to distribute your iOS application. Apple provides three ways to distribute your application based on which developer program you are a member of:
If you are using Mac OS X 10.9 (Mavericks), make sure you grant Studio access to the computer as described in Installing the iOS SDK: Running on Mavericks.
Once you are done with the preceding steps, use Studio to build your app for final distribution. To package your application for distribution, first select the project in the Project Explorer view, then in the global tool bar, select Package from the Launch Mode drop-down list. From the Target drop-down list, choose iOS iTunes Store to distribute to the App Store or iOS Ad Hoc/Enterprise to distribute to a limited number of devices (ad hoc) or for in-house distribution. If the Launch Automatically option is enabled under the Target drop-down list, the application will be automatically launched after the target is selected. If not, you need to click the Launch button to start the build process.
On the General page, ensure the requirements have been satisfied and select the desired SDK version. For ad hoc and in-house distribution, specify the package format as ipa and a path to copy the package to. Click Next.
On the Certificates page, select your distribution certificate and keychain. Click Next to proceed.
Provisioning profiles are specified on the last page. To install the provisioning profile, click the Browse... button, locate your .mobileprovision file, and click Open to install that profile into Xcode. If you have installed more than one provisioning profile, make sure to choose the one that corresponds to your app and your distribution certificate. Select a Provisioning Profile and click Finish.
Studio packages your iOS application. For App Store distributions, the final signed IPA file is installed into the Archives tab of the Xcode Organizer and should be automatically lauched after building the package. For Ad Hoc distributions, the file is copied to the specified path.
The next time you execute the Distribute action, you will see a more simplified wizard where you specify the certificate, provisioning profile, and iOS SDK. You can navigate to the iOS Platform preference page to view and modify current iOS platform settings using the Manage settings link
Image ModifiedImage Modified
Distribute and install your ad hoc application