Home/Q&A/Can I sign and notarize a macOS app on a remote Mac if I don't own one?

Can I sign and notarize a macOS app on a remote Mac if I don't own one?

Updated · airankrush

Direct answer

Yes. Signing and notarization both use command-line tools that come with Xcode, and they work the same on a remote Mac as on a local one. The conditions are a paid developer account and the ability to create a Developer ID certificate.

Basis

  • macOS software distributed outside the Mac App Store needs to be signed with a Developer ID certificate and submitted to Apple for notarization, otherwise the system's security check blocks it after download. Apps published on the Mac App Store do not need separate notarization; they go through store review instead.
  • According to Apple Developer Help, only the Account Holder role can create Developer ID certificates. There are two kinds: Developer ID Application for signing apps and Developer ID Installer for signing installer packages. If you enrolled as an individual, you are the Account Holder. If you are an ordinary member of a company team, ask the Account Holder to create the certificate and export it to you together with the private key.
  • Notarization is submitted with notarytool, which comes with Xcode; the earlier altool notarization method has been retired by Apple. For credentials you can use an Apple Account with an app-specific password, or an App Store Connect API key. After notarization succeeds, use stapler to attach the ticket to the app or installer so that it also passes verification offline.
  • Notarization requires the Hardened Runtime to be enabled when signing. The packaging tools for frameworks such as Electron and Tauri mostly have signing and notarization options built in; you fill in the certificate name and credentials. Follow each framework's official documentation for the exact fields.

Information as of .

Boundaries: when the answer is different

Notarization is an automated check run by Apple. Whether it passes and how long it takes depend on Apple's service, and we do not guarantee the result. If you only need a macOS build occasionally, a cloud build service with macOS runners can also sign and notarize, so you do not necessarily need to rent a whole machine. A machine with a desktop you can log in to becomes useful when you have to debug signing errors repeatedly or open the app by hand to see what the system says. Keeping a Developer ID private key on a rented machine carries two kinds of risk, leakage and loss; see the page on certificate private keys for how to handle it.

How to do it

  1. Create a Developer ID Application certificate in the developer portal or in Xcode, and confirm that the certificate in the keychain has a private key under it.
  2. Generate an app-specific password or an API key, and store it in the keychain with notarytool store-credentials so it does not end up in scripts.
  3. Sign with your packaging tool or codesign, with the Hardened Runtime enabled.
  4. Submit with notarytool submit and wait for the result; if it fails, fetch the log to see why.
  5. Once it passes, run stapler staple, then double-click the app on this Mac once to confirm the system no longer blocks it.

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