Menu

1 / 2

Building a Zero-Dependency, Apple-Notarized Auto-Updater in Native Swift (Without Sparkle)

DEV Community: swift·Aurelian Ro·7 days ago
#JAJo1dTy
#devtoswift#devto#dev#tidymac#apple
Long article (554 words) — no AI summary yet.
Reading 0:00
15s threshold

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 ...…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.