When you ship a native macOS app outside the Mac App Store, distribution gets tricky fast. Users expect two things:
Zero Gatekeeper warnings (proper Developer ID signing + Apple Notarization + stapled .dmg ).
One-click automatic updates that never force them back to a browser to manually drag another .dmg into /Applications .
Most indie devs reach for Sparkle 2, which is battle-tested — but for our lightweight native SwiftUI utility ( TidyMac ), embedding an external framework more than doubled our app's footprint and complicated our dual-target XcodeGen setup (Direct DMG vs. sandboxed Mac App Store).
Here is the exact, zero-dependency architecture we shipped in TidyMac v0.81 using only Apple's built-in frameworks ( CryptoKit , Foundation , codesign , and spctl ).
1. The Notarization Gotcha That Trips Up xcodebuild
If you build your Release .app with xcodebuild ...…