releaseflow
PricingGalleryToolsBlogDocsLog inStart free
ReleaseFlow/Blog/macOS & Sparkle
macOS & Sparkle

macOS Developer ID Notarization & Stapling Checklist (2026)

Every step required to pass macOS Gatekeeper cleanly on Sequoia and Tahoe — from Hardened Runtime entitlements and secure timestamps to notarytool submit, stapling DMGs vs ZIPs, and CI verification.

By Kitze (@thekitze)Published December 5, 2026 UTC7 min read
In this guide
  • 1. Signing identity, Hardened Runtime, and entitlements
  • 2. Notarizing .zip update archives vs .dmg installers
  • 3. Stapling tickets so offline users pass Gatekeeper
  • 4. Pre-tag release verification checklist

Shipping a macOS app outside the Mac App Store means owning the full trust chain between your build machine and Apple Gatekeeper. One unsigned nested helper binary, a missing secure timestamp, or notarizing only the .app instead of the outer .dmg is enough to greet first-time buyers with a scary "cannot be opened because Apple cannot check it for malicious software" dialog.

Here is the exact checklist we run in CI for every native Swift and Electron macOS build shipped through ReleaseFlow.

1. Signing identity, Hardened Runtime, and entitlements

You need a Developer ID Application certificate (not Apple Development or Mac App Distribution) exported as a .p12 into your CI runner's temporary keychain. Every Mach-O binary inside Contents/Frameworks, Contents/Helpers, and Contents/PlugIns must be signed inside-out before signing the outer .app bundle.

Inside-out codesign with Hardened Runtime + secure timestamp
codesign --force --options runtime --timestamp \
  --entitlements build/entitlements.mac.plist \
  --sign "Developer ID Application: Your Name (TEAMID1234)" \
  dist/MyApp.app

# Verify signature chain strictly before archiving
codesign --verify --deep --strict --verbose=2 dist/MyApp.app
Avoid --deep during signing

Never pass --deep to codesign when signing (only when verifying). Signing with --deep applies the top-level entitlements to helper frameworks and Sparkle XPC services, which breaks sandboxing or causes notarization rejection.

2. Notarizing .zip update archives vs .dmg installers

Most indie Mac apps ship two artifacts per release: a pretty .dmg for browser downloads and a .zip archive for Sparkle or Squirrel.Mac auto-updates. Use ditto (not plain zip) so macOS preserves symlinks and extended attributes.

Archive with ditto and submit via notarytool
# Create a Sparkle-safe zip preserving symlinks and resource forks
ditto -c -k --keepParent dist/MyApp.app dist/MyApp-1.4.18-arm64.zip

# Submit with App Store Connect API key (preferred over app-specific passwords)
xcrun notarytool submit dist/MyApp-1.4.18-arm64.zip \
  --key "$ASC_API_KEY_PATH" \
  --key-id "$ASC_KEY_ID" \
  --issuer "$ASC_ISSUER_ID" \
  --wait

If notarization fails, immediately pull the JSON log using xcrun notarytool log <submission-id> with the same credentials. Nine times out of ten it pinpoints the exact nested .dylib or helper executable missing --timestamp or Hardened Runtime.

3. Stapling tickets so offline users pass Gatekeeper

You cannot staple a ticket directly onto a .zip file — zip archives have no Mach-O or UDIF trailer slot for the notarization ticket. Instead, staple the .app bundle BEFORE zipping it for Sparkle, and staple the signed .dmg after notarizing the .dmg itself.

Staple .app and .dmg, then validate with spctl
# Staple the app bundle first, then re-create the update .zip
xcrun stapler staple dist/MyApp.app
ditto -c -k --keepParent dist/MyApp.app dist/MyApp-1.4.18-arm64.zip

# Sign, notarize, and staple the DMG installer
codesign --force --timestamp --sign "$SIGNING_ID" dist/MyApp-1.4.18-arm64.dmg
xcrun notarytool submit dist/MyApp-1.4.18-arm64.dmg --key "$ASC_API_KEY_PATH" --key-id "$ASC_KEY_ID" --issuer "$ASC_ISSUER_ID" --wait
xcrun stapler staple dist/MyApp-1.4.18-arm64.dmg

# Final Gatekeeper check (must report: accepted / source=Notarized Developer ID)
spctl -a -t exec -vvv dist/MyApp.app
xcrun stapler validate dist/MyApp-1.4.18-arm64.dmg

4. Pre-tag release verification checklist

Verify before pushing your git tag
  • All nested binaries (.dylib, .framework, Sparkle Autoupdate, Electron helpers) signed with --options runtime --timestamp.
  • Info.plist CFBundleVersion incremented monotonically (matching Sparkle sparkle:version).
  • ditto -c -k --keepParent used after stapling the .app so the Sparkle .zip carries an offline-verifiable ticket.
  • Sparkle EdDSA signature (.sig) generated AFTER the final stapled .zip is created (re-zipping invalidates the signature!).
  • spctl -a -t exec -vvv reports source=Notarized Developer ID with exit code 0.
Next step: generate your signed Sparkle feed

Once your .zip is notarized and signed with ./bin/sign_update, validate your XML structure and EdDSA signature length in our instant client-side generator.

Try the Sparkle appcast.xml Generator →
Companion Tools & Docs

Put this guide into practice

Sparkle appcast.xml Generator →Generate and validate signed Sparkle 2 appcast XML right after notarization.ReleaseFlow Sparkle Docs →Automate signed macOS appcast feeds directly from your GitHub releases.Product Gallery →See live macOS download pages for Sotto, Supermac, and Sizzy.
ReleaseFlow

Ship your Mac or Electron app with a single git tag.

Permanent OS-aware download links, cached Sparkle & Electron auto-update feeds, Polar/Stripe PPP checkout, and license keys — with 0% cut on your sales.

Get started free →Open Sparkle appcast.xml GeneratorProduct gallery
Keep Reading

More desktop engineering guides

December 4, 2026Sparkle 2 EdDSA Auto-Updates Guide for Native Mac Apps8 min readNovember 29, 2026Shipping Universal vs Separate Apple Silicon (arm64) and Intel (x64) macOS DMGs6 min readDecember 6, 2026ReleaseFlow vs ToDesktop for Software Teams: Cloud Electron Builds vs Update Feeds, Checkout and Licensing from Your Own GitHub Releases8 min read
releaseflow
PrivacyTermsGalleryToolsBlogDocsChangelogAffiliatesSupport