Term · Xcode archive (.xcarchive)
An archive is a build that Xcode prepares for distribution: when you choose Archive from the menu, Xcode compiles the app with the release configuration, stores the app itself together with debug symbols and other information in an .xcarchive bundle, and lists it in the Organizer's archives list. An archive cannot be installed as it is. It is the starting point for what comes next: an automatic validation, then an upload to App Store Connect, or a repackaging into an ipa according to the distribution method you choose. The same process can be done on the command line with xcodebuild, which is the route continuous integration systems take.
How it relates to renting a remote Mac
Archiving is the step in the whole release process that is hardest to do without macOS: it depends on the full Xcode, and Xcode exists only for macOS. When cross-platform frameworks such as Flutter and React Native produce an iOS build, this is the step they call underneath. People without a Mac either let a cloud build service run it for them or have a Mac they can operate remotely.
A few practical points about archiving on a rented Mac:
- Archiving uses more processor and time than an everyday debug build, and the remote desktop may feel less responsive while it runs. We have no timing figures to publish; it depends on the size of the project and the machine configuration.
- Archives are stored in the Xcode folder under your user directory and take up a fair amount of disk after many releases. Old ones can be deleted in the Organizer.
- The debug symbol files in an archive are used to turn crash logs from production into readable function names. If you did not send the symbols to Apple at upload time, copy the archive for that version back to your own computer before the rental ends; once the machine is erased you cannot get it back.
For details of the process see Apple documentation: Distributing your app for beta testing and releases.
FAQ
The Archive menu item is greyed out. Is something wrong with the machine?
Most likely not. Common causes are a run destination that is not suitable for archiving, or a scheme with no archivable target. Behavior differs between Xcode versions; follow Apple's documentation.
Does a successful archive mean the app is ready for the App Store?
No. An archive only shows that compilation and local signing passed. Apple runs another round of automatic checks at upload, and TestFlight and review come after that.
Related
- What is an ipa file, and can it be installed straight onto an iPhone?
- What is Apple's Transporter, and how is it different from uploading with Xcode?
- What is DerivedData in Xcode, and is it safe to delete?
- How do I sign an iOS app and upload it to the App Store from a remote Mac?
- How do I build an iOS ipa for a Flutter app developed on Windows?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support