In Xcode:
- Select Product → Archive
- Wait for the archive to complete
- In the Organizer window, select your archive
Since this is for direct distribution (not App Store):
- Click Distribute App
- Select Copy App (or "Direct Distribution")
- Choose a destination folder
- You'll get
Dockey.app
# Create a DMG for easy distribution
hdiutil create -volname "Dockey" -srcfolder /path/to/Dockey.app -ov -format UDZO Dockey.dmgOr use a tool like create-dmg for a prettier DMG:
brew install create-dmg
create-dmg --volname "Dockey" --app-drop-link 400 100 Dockey.dmg /path/to/Dockey.app- Zip or DMG the app
- Send via file sharing (Dropbox, Google Drive, AirDrop, etc.)
- Recipient drags to
/Applications
- Create a GitHub repo (if not already)
- Tag releases:
git tag v1.0.0 && git push --tags - Upload DMG to GitHub Releases
- Share the releases URL
- Build new version in Xcode
- Export and create new DMG
- Send to users with instructions to replace old app
Sparkle is the standard macOS update framework.
-
Add Sparkle via SPM in Xcode:
- File → Add Package Dependencies
- URL:
https://github.com/sparkle-project/Sparkle
-
Configure Info.plist:
<key>SUFeedURL</key> <string>https://your-server.com/appcast.xml</string>
-
Add update check in your app:
import Sparkle // In DockeyApp.swift @StateObject private var updaterController = SPUStandardUpdaterController( startingUpdater: true, updaterDelegate: nil, userDriverDelegate: nil )
-
Host an appcast.xml on your server containing version info
Use Sparkle's GitHub integration which uses GitHub Releases as the update source:
// Package.swift dependency
.package(url: "https://github.com/mxcl/AppUpdater", from: "1.0.0")- Bump version in Xcode (Target → General → Version)
- Build & Archive: Product → Archive
- Export the app
- Create DMG:
hdiutil create ... - Upload to GitHub Releases or your server
- Update appcast.xml (if using Sparkle)
- Users get notified automatically
# Build release from command line (alternative to Xcode)
xcodebuild -project DockeyApp/Dockey/Dockey.xcodeproj \
-scheme Dockey \
-configuration Release \
-archivePath build/Dockey.xcarchive \
archive
# Export from archive
xcodebuild -exportArchive \
-archivePath build/Dockey.xcarchive \
-exportPath build/ \
-exportOptionsPlist ExportOptions.plist