Archiving Your 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.