Before submitting an application to the App Store or share it with others, you create an application archive. You can then share your application archive with application testers and other application developers or distribute it to users. To have the application considered for inclusion on the App store, you submit the archive to iTunes Connect. To ensure your application archive passes essential iTunes Connect validation tests, you can have Xcode validate it before you submit it.
Archive Your Application
Before archiving your application, ensure that the binary is self contained. That is, if it relies on static libraries, ensure that those libraries are part of the application binary by setting the Skip Install build setting to Yes in the Release build configuration of the target that builds and archives the application.
Archive your product for submission to iTunes Connect or for sharing with others. Schemes have an Archive action with settings you use to customize the archive that Xcode creates when you choose Product > Archive.
- From the Scheme toolbar menu, choose a scheme.
- From the same menu, choose Edit Scheme to display the scheme dialog.
- In the left column, select Archive.
- Choose a build configuration.
- Specify a name for the archive and click OK.
- Choose Product > Archive.
An archive is a bundle that includes your product along with symbol information. You can build an archive to seed an application for testing or to validate and submit an application to iTunes Connect.
Your new archive appears in the Archives list in the Organizer window, unless you turn off this option. Each archive is identified in the archives organizer with the date and time it was created. For more information, see the related article on the archives organizer.