Home/Q&A/How do I sign an iOS app and upload it to the App Store from a remote Mac?

How do I sign an iOS app and upload it to the App Store from a remote Mac?

Updated · airankrush

Direct answer

It works, and the process is the same as on a local Mac: sign in to your developer account in Xcode, let automatic signing create the certificate and provisioning profile, Archive, upload from the Organizer, then verify in TestFlight.

Basis

  • Signing involves three things: the identifier (the Bundle ID, registered as an App ID in the developer portal), the certificate (proves who signed; distribution uses an Apple Distribution certificate), and the provisioning profile (ties the identifier, certificate and distribution method together; App Store releases use the App Store type).
  • With Xcode's automatic signing ticked, Xcode creates and updates all three using the account you signed in with. Creation fails if the account's role in the team lacks permission. With manual signing you create and download each item yourself in the developer portal.
  • There are three upload channels: the Xcode Organizer, the Transporter app and the command-line tool, all with the same result. After upload the build has to be processed by Apple before it appears in TestFlight.
  • TestFlight internal testers (team members) can install as soon as the build finishes processing. Inviting external testers requires passing Beta App Review first.

Information as of .

Boundaries: when the answer is different

Two things differ in a remote environment. The two-factor code at sign-in goes to your own device, so you need to be on hand. And the certificate's private key is stored in the remote machine's keychain; the machine is reclaimed after the rental ends, so if you do not export a p12 beforehand, next time you can only revoke the old certificate and generate a new one. We provide the machine and an admin account; we do not do the signing for you and do not guarantee approval. Interface names change between Xcode versions, so refer to Apple's developer documentation.

How to do it

  1. Sign in from Xcode → Settings → Accounts with an account enrolled in the Apple Developer Program.
  2. Register the Bundle ID in the developer portal and use it to create the app record in App Store Connect.
  3. In the target's Signing & Capabilities tab choose the Team, enter the same Bundle ID, tick Automatically manage signing and confirm there are no errors.
  4. Set the version and build number, choose 'Any iOS Device' as the run destination, and run Product > Archive.
  5. Select the archive in the Organizer, click Distribute App, choose App Store Connect and upload.
  6. Wait for the build to appear in TestFlight, fill in the export compliance information, install and verify it yourself, then submit for review.

Use case

This question belongs to the use case: iOS without a Mac: a remote Mac mini can build, sign and upload, but not debug on a real device

Other questions in the same use case:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A