How to Generate an .ipa File for Ad Hoc Distribution in Xcode

This page explains how to generate and export an .ipa file in Xcode for Ad Hoc distribution. An .ipa file is the binary file of an iOS app.

The distribution of .ipa files (iOS app binaries) is done via over-the-air installation, which allows users to download and install the file directly from the internet.


We will proceed under the assumption that the Ad Hoc Provisioning Profile has already been set up in Xcode.

If you have not yet created and configured a Provisioning Profile, please go back to the Ad Hoc distribution menu and complete that step first.


Generate an .ipa File for Ad Hoc Distribution in Xcode

Open the iOS app project in Xcode where the Provisioning Profile has been configured.

Select Any iOS Device (or Generic iOS Device, depending on your version of Xcode) as the target device, then go to the menu and choose [Product] > [Archive].

Generate an .ipa file for Ad Hoc distribution in Xcode 1


If prompted for Keychain access to the certificate, grant permission.

Generate an .ipa file for Ad Hoc distribution in Xcode 2


Once the app has been archived, the Organizer window will open. Select the newly created archive and click [Distribute App].

Generate an .ipa file for Ad Hoc distribution in Xcode 3


In the Select a method of distribution screen, choose Custom and click [Next].

Generate an .ipa file for Ad Hoc distribution in Xcode 4-1


In the next screen, select Release Testing and click [Next].

Generate an .ipa file for Ad Hoc distribution in Xcode 4-2


In the Release Testing distribution options, choose the options as shown below and click [Next].

Generate an .ipa file for Ad Hoc distribution in Xcode 5


In the Distribution manifest information screen, enter the information for the over-the-air manifest file. If you already know the hosting URL for your .ipa file, enter it here (note that the URL must use HTTPS). If you don't have it decided yet, you can enter a placeholder value—you can update it later.

Generate an .ipa file for Ad Hoc distribution in Xcode 9


Click [Next] once the information is entered.

Generate an .ipa file for Ad Hoc distribution in Xcode 10


On the Select certificate and iOS Ad Hoc profiles screen, choose the Ad Hoc Provisioning Profile and certificate you set earlier in Configuring the Provisioning Profile in Xcode, then click [Next].

Generate an .ipa file for Ad Hoc distribution in Xcode 11


On the Review *.ipa content screen, click [Export], then choose a save location and save the file.

Generate an .ipa file for Ad Hoc distribution in Xcode 12


The .ipa file for Ad Hoc distribution has now been generated and exported successfully.

Generate an .ipa file for Ad Hoc distribution in Xcode 13


That's it! You have learned how to generate and export an .ipa file in Xcode for Ad Hoc distribution.