1.6. Packaging iOS Apps for Distribution
Problem
You want to send your iOS app to others so that they can test your app or have a look at it, before you submit your app to the App Store.
Solution
You need to archive your application.
Discussion
In order to archive an application, you need to follow certain steps:
Make sure that you have fully tested the app on the simulator and you are happy that your app is stable.
Gather the UDIDs (Unique Device Identifiers) of all those devices on which you want to run your app. You can ask your friends and colleagues for these if the devices belong to them.
Add these UDIDs to your iOS Portal.
Create an Ad Hoc Distribution provision profile. Provision profiles are a mix of binary and XML content that allow an application to be executed on devices that have been linked to that provision profile.
After you have your provision profiles (a file that end with .mobileprovision extension), tell Xcode to use that provision profile for release purposes, as we will soon see.
Within Xcode, select the Product menu and then choose Archive. Xcode will now archive your application and, when that is done, display Organizer to you. Here you can export your archived application as a file (with the .ipa extension) that your testers/colleagues/friends can drag and drop into their iTunes or iPhone Configuration Utility to install your app on their iOS devices.
To distribute your iOS app to testers/colleagues and friends, you have to create an Ad Hoc provision profile. Follow ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access