Notarize a Mac app you signed yourself
Attach a Mac app you signed with your Developer ID, have an Agent send it to Apple's notary service, read the log if Apple turns it down, and staple the ticket to the file.
If you give out a Mac app yourself, for example as a download from your website, Apple’s notary service checks it and gives back a ticket. An Agent can send your signed app to the notary service, tell you what Apple said, and staple the ticket to the file so it travels with the app. Apple explains what notarization checks and when you need it in Notarizing macOS software before distribution ↗.
Before you start
- The Team’s owner has connected an Apple Developer account and switched a team on. The Agent sends the app to Apple with that team. See Connect your Apple Developer account.
- Your app is signed with your Developer ID. Apple’s page above lists what else the notary service needs from the app.
- The file is a
.zip,.dmgor.pkg: those are the three kinds the command takes. If you attach an.app, AirBuild attaches it as a zip of itself (for exampleMyApp.app.zip). If Apple says the signature isn’t valid, zip the app yourself as Apple’s Customizing the notarization workflow ↗ shows, or make a disk image, and attach that.
Send it to Apple
-
Attach the file to a message in the Project’s chat. See Send photos, files and sketches to an Agent.
-
Ask, for example:
Notarize the attached Mac app, staple the ticket, and send me the stapled file. -
The Agent sends it with
asc notarization submit --wait. The help says the command uploads the file to Apple and, with--wait, waits for Apple’s result. If it stops waiting first, see the timed-out question below. -
It tells you Apple’s answer and the submission’s ID. The status is one of
Accepted,In Progress,InvalidorRejected.
Sending the file doesn’t change it. When the status is Accepted, the Agent goes on to staple the ticket.
If Apple doesn’t accept it
When the status is Invalid or Rejected, the command says “Notarization failed” and points to the log. Ask:
Why didn't Apple accept it? Show me what the notarization log says.The Agent reads the log with asc notarization log --fetch. The help says the log has “detailed information about the notarization result, including any issues found during the scan.” The Agent can sum it up in the chat, or save it as a file (--path) and send it to you.
You signed the app, so the fix is on your side: sign it again with what the log asks for, attach the new file and ask again. Apple lists the usual problems and their fixes in Resolving common notarization issues ↗.
Staple the ticket
Stapling attaches Apple’s ticket to your file. The help says asc notarization staple attaches it and checks it straight after. It changes the file itself, so it runs only with --confirm, and the Agent asks you first.
- What can be stapled: a notarized app bundle (
.app), a disk image (.dmg) or a signed installer package (.pkg). A.zipcan’t be stapled: the help says to staple the item inside it and zip it again. The Agent does that for you. - Where it runs: the help says stapling runs only on a Mac, and Apple’s stapler may need the internet. In a local Team, the Agents work on your Mac, so the Agent staples there. In a cloud Team, this page doesn’t know whether the Agent can staple. If it says the stapler “is supported on macOS only”, staple the file yourself on your Mac: Apple’s Customizing the notarization workflow ↗ shows how. See Choose where your Agents run.
The Agent sends the stapled file back in the chat. Touch and hold it (on the Mac, right-click it) and choose Save As…. On the Mac, clicking a .pkg or .dmg in the chat shows it in Finder instead of opening it. See Send photos, files and sketches to an Agent.
To check a file later, ask “Does the attached app have a stapled ticket?” The Agent checks with asc notarization validate, which doesn’t change the file and also runs only on a Mac.
Check on a submission later
| Ask | asc |
|---|---|
| “Where does my notarization stand?” | notarization status, with the submission’s ID. |
| “List my last five notarizations.” | notarization list, with --limit. |
| “Show me the log for the last notarization.” | notarization log, with the submission’s ID. Without --fetch, it gives a link to the log instead of its contents. |
Questions
Can an Agent sign my Mac app with Developer ID?
asc certificates create says the type “is a signing certificate, which Airbuild manages”. Sign the app yourself, then attach it.The Agent says the file type isn't supported.
The Agent says the file must not be empty.
The Agent timed out waiting for notarization.
The Agent says zip archives can't be stapled.
The Agent says the stapler is supported on macOS only.
The Agent says xcrun is not available.
Will my Developer ID certificate keep working?
asc certificates developer-id-check. Its help says certificates from the original Developer ID Certification Authority stop working on February 1, 2027, that .pkg installers signed with them no longer install, and to replace them with certificates from Developer ID Certification Authority (G2). Each certificate comes back as affected, not-affected, likely-affected or unknown.