Ship a Mac app outside the App Store with AI agents
Sign every executable with a Developer ID certificate, enable the Hardened Runtime, add a secure timestamp, then notarize with notarytool (or Xcode 14+) and staple the ticket. Let the agent package SwiftPM output into a .app and DMG, but keep notarization credentials out of its context.
Last updated:
What Apple requires
Since macOS 10.15, software built after 1 June 2019 and distributed with Developer ID must be notarized. Mac App Store apps don't need it.
The notary service no longer accepts uploads from altool or Xcode 13 or earlier (since 1 Nov 2023): use notarytool or Xcode 14+.
Requirements: valid signatures on all executables, a Developer ID certificate (not Mac Distribution, ad hoc or development), Hardened Runtime, secure timestamp, no
com.apple.security.get-task-allowset to true, macOS 10.9 SDK or later, well-formed XML entitlements.Notarization is not App Review: it is an automated scan; the ticket is published online and can be stapled.
Rules for AGENTS.md
Code
- Distribution = Developer ID outside the Mac App Store. Never sign release builds with a development or Mac Distribution cert.
- Enable Hardened Runtime on every app and CLI target; never ship get-task-allow=true.
- Notarize with notarytool only (no altool). Read credentials from a keychain profile; never print or commit them.
- Staple the ticket to the .app/DMG, then verify with Gatekeeper before tagging a release.Step 1: install a packaging skill
Codex: macOS SPM Packaging. Claude Code: Swift Ship Skills.
Step 2: build the .app and check signatures
Have the agent assemble the bundle (Info.plist, icon, LSUIElement for menu bar apps) and sign every nested executable with Developer ID + Hardened Runtime + timestamp.
Step 3: notarize and staple
You store notarytool credentials yourself; the agent only calls the stored profile, waits for the result and reads the log on failure.
Step 4: package the DMG and release
Notarize the DMG (UDIF) too, staple, then cut the GitHub Release.
Tools compared (5)
| Tool | Best for | Agents (README) | Install (README) | License | Stars | Last push |
|---|---|---|---|---|---|---|
| macOS SPM Packaging (Dimillian) | SwiftPM-only app → .app, signing, optional notarization | Codex | Copy macos-spm-app-packaging into $CODEX_HOME/skills | MIT | 4027 | 29 Mar 2026 ⚠ |
| Swift Ship Skills (chsistrying) | .icns, SwiftPM → .app + DMG, CI portability, release flow | Claude Code | /plugin marketplace add chsistrying/swift-ship-skills then /plugin install swift-ship@swift-ship | MIT | 0 | 3 Sep 2026 ⚠ |
| SwiftUI macOS (kageroumado) | Correct SwiftUI/AppKit code before you ship | Claude Code, Codex | /plugin marketplace add kageroumado/swiftui-macos-skill then /plugin install swiftui-macos | MIT | 13 | 17 Oct 2026 |
| macOS Trace (kmgcc) | Instruments profiling of the release build | Claude Code, Codex, Cursor | npx skills add kmgcc/macOS-Trace | MIT | 3 | 28 Sep 2026 ⚠ |
| Apple Platform Engineer (ShawnBaek) | End-to-end indie shipping incl. macOS | Claude Code, Codex | npx skills@1.5.23 add ShawnBaek/ai-workflow-apple-platform-engineer -g -a claude-code --skill '*' | MIT | 3 | 1 Nov 2026 |
⚠ = no push in the last 4 weeks.
Which one to pick
SwiftPM-only app on Codex → macOS SPM Packaging.
Claude Code, menu bar app, DMG + GitHub Release → Swift Ship Skills.
Writing the app itself → SwiftUI macOS; profile with macOS Trace before shipping.
A prompt that keeps the agent honest
Code
Package this SwiftPM app for Developer ID distribution. Use Hardened Runtime and a secure timestamp, notarize with notarytool using the keychain profile "release" (do not read it), staple, build a DMG, notarize and staple that, then show me the Gatekeeper check output. Stop on the first notary error and show the log.FAQ
- Do I need to notarize a Mac app I sell on the Mac App Store?
- No. Apple says you aren't required to notarize software distributed through the Mac App Store, because App Store submission already includes equivalent security checks. Notarize software you distribute yourself with Developer ID.
- Can my agent still use altool to notarize?
- No. Since 1 November 2023 the Apple notary service no longer accepts uploads from altool or Xcode 13 or earlier. Tell the agent to use notarytool or Xcode 14 or later.
- Which certificate should the agent sign with?
- A Developer ID application (or installer) certificate. Apple says not to use a Mac Distribution, ad hoc, Apple Developer or local development certificate for notarized software.
- What else does the notary service check?
- Valid code signatures on all executables, the Hardened Runtime, a secure timestamp, no get-task-allow entitlement set to true, linking against the macOS 10.9 SDK or later, and properly formatted XML entitlements.
- Which skill should I start with?
- For a SwiftPM-only app, start with Dimillian's macos-spm-app-packaging (Codex) or Swift Ship Skills (Claude Code). Add SwiftUI macOS for AppKit integration and macOS Trace before release if performance matters.