Apple’s
submits signed macOS apps and installer packages for notarization. Set up a Keychain profile once and reuse it for releases across your Apple Developer team.
This guide uses
as an example. To use it with another app, replace
with the path to your signed installer.
1. Check that
notarytool
is available
Open Terminal and run:
xcrun notarytool --version
If
can’t find
, install or select a current Xcode toolchain and try again. Apple’s notarization guide
2. Create an app-specific password
Sign in to your Apple Account, open Sign-In and Security → App-Specific Passwords, and generate a password named
. Your Apple Account must have two-factor authentication enabled. Apple’s app-specific password instructions
3. Save your credentials in Keychain
Find your Team ID under Membership details in your Apple Developer account. Replace the example email and Team ID below, then run the command. Paste the app-specific password when prompted so it stays out of your shell history. Apple Developer account
xcrun notarytool store-credentials "developer-notary" \
--apple-id "you@example.com" \
--team-id "YOUR_TEAM_ID"
Check that the profile can connect to Apple’s notarization service:
xcrun notarytool history --keychain-profile "developer-notary"
4. Submit the signed installer
Sign the
with Developer ID Application before packaging it. Then sign the
with Developer ID Installer. Submit that finished package to Apple. Apple’s packaging guide
xcrun notarytool submit "/path/to/installer.pkg" \
--keychain-profile "developer-notary" \
--wait
If the result is Invalid, use the submission ID printed by
to see which checks failed:
xcrun notarytool log "SUBMISSION_ID" \
--keychain-profile "developer-notary"
5. Staple and verify the ticket
Once the submission status is Accepted, attach Apple’s notarization ticket to the package and verify it:
xcrun stapler staple "/path/to/installer.pkg"
xcrun stapler validate "/path/to/installer.pkg"
Distribute the stapled
. For future releases, reuse the same
profile and repeat the submission and stapling steps for each new package. Apple’s notarization workflow
What to sign and what to notarize
For a
release, sign the app with Developer ID Application and sign the installer with Developer ID Installer. Submit only the finished
for notarization. Apple checks the app inside it, so a separate notarization submission for the app is unnecessary.
For a
release, sign the app with Developer ID Application, put it in a ZIP, and submit the ZIP for notarization. After Apple accepts it, staple the ticket to the app and create a fresh ZIP containing the stapled app. Distribute that ZIP. Apple’s packaging guide