mac-app
/mac-app
Build, bundle, sign and ship a macOS app with SwiftPM and the Command Line Tools only, no Xcode project. Use when creating a menu bar or desktop Mac app from the terminal, turning a Swift package into a .app, fixing macOS permission (TCC) prompts that never appear or keep resetting, adding a login item, or preparing a DMG, notarized build or Homebrew release.
- Author
- onder007 ↗
- Repository
- mac-app-skill ↗
- Licence
- MIT
- Last repository change
- 02.11.2026
Assessment and security
- Files in this package
- 10
- Scripts
- 5
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 02.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 5 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/bundle.sh, scripts/make-dmg.sh, scripts/verify-app.mjs, templates/menubar/Package.swift, templates/menubar/Sources/App/main.swift
What it does and when to use it
Build, bundle, sign and ship a macOS app with SwiftPM and the Command Line Tools only, no Xcode project. Use when creating a menu bar or desktop Mac app from the terminal, turning a Swift package into a .app, fixing macOS permission (TCC) prompts that never appear or keep resetting, adding a login item, or preparing a DMG, notarized build or Homebrew release.
Original author description
Build, bundle, sign and ship a macOS app with SwiftPM and the Command Line Tools only, no Xcode project. Use when creating a menu bar or desktop Mac app from the terminal, turning a Swift package into a .app, fixing macOS permission (TCC) prompts that never appear or keep resetting, adding a login item, or preparing a DMG, notarized build or Homebrew release.
How it works
- Workflow
- Rules
- Files
SKILL.md preview
--- name: mac-app description: Build, bundle, sign and ship a macOS app with SwiftPM and the Command Line Tools only, no Xcode project. Use when creating a menu bar or desktop Mac app from the terminal, turning a Swift package into a .app, fixing macOS permission (TCC) prompts that never appear or keep resetting, adding a login item, or preparing a DMG, notarized build or Homebrew release. --- # mac-app Ship a real `.app` from a Swift package without opening Xcode. The Command Line Tools include `swift`, `codesign`, `notarytool`, `stapler`, `hdiutil` and `iconutil`, which is everything this needs. ## Workflow 1. **Scaffold** a package and the app shell. Read [SCAFFOLD.md](SCAFFOLD.md). Start from `templates/menubar/` for a menu bar app. 2. **Before writing SwiftUI**, read [PITFALLS.md](PITFALLS.md) section 1. Without Xcode, `@State`, `@Observable`, `@Entry` and `#Preview` do not compile. 3. **Bundle** with `scripts/bundle.sh`. It builds in release mode, writes `Info.plist`, copies the binary and signs the bundle. 4. **Permissions:** for every protected API the app calls, add its usage string and know its TCC service. Read [PERMISSIONS.md](PERMISSIONS.md). 5. **Verify** with `node scripts/verify-app.mjs <App.app>`. Fix every `error` before going further. Read the `warn` lines; each one says why it matters. 6. **Release** as a DMG, optionally notarized, optionally through a Homebrew tap. Read [RELEASE.md](RELEASE.md). ## Rules - Never claim a permission flow works without running the bundled app (`open App.app`), not the bare binary. TCC attributes a binary started from a terminal to the terminal, so prompts and grants differ. - Every protected API needs its usage string in `Info.plist` before the first call. A missing string ends the process at the request, with no dialog. - Prefer a stable signing identity during development (PITFALLS.md section 3). Ad-hoc signatures change on every build and TCC may treat each build as a new app. - Keep the app's own state in `ObservableObject` classes and pass `Binding(get:set:)` to controls. - Run `verify-app.mjs` after every change to `Info.plist`, entitlements or signing. ## Files | File | Read when | |---|---| | [SCAFFOLD.md](SCAFFOLD.md) | Starting a new app, or turning a package into a bundle | | [PITFALLS.md](PITFALLS.md) | Something compiles in Xcode but not here; a window, panel or event monitor behaves oddly | | [PERMISSIONS.md](PERMISSIONS.md) | Adding camera, mic, speech, contacts, calendars, Apple Events, accessibility, screen recording or folder access | | [RELEASE.md](RELEASE.md) | Making a DMG, notarizing, publishing a GitHub release or Homebrew cask | | `scripts/bundle.sh` | Building the `.app` | | `scripts/verify-app.mjs` | Checking a built `.app` | | `scripts/make-dmg.sh` | Packaging for download |
Files in this package (10)
- PERMISSIONS.md 3 KB
- PITFALLS.md 8 KB
- RELEASE.md 2 KB
- SCAFFOLD.md 2 KB
- SKILL.md 3 KB
- scripts/bundle.sh 3 KB
- scripts/make-dmg.sh 1 KB
- scripts/verify-app.mjs 8 KB
- templates/menubar/Package.swift 1 KB
- templates/menubar/Sources/App/main.swift 2 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · onder007/mac-app-skill | 90 | MIT |
| workflowsdiy/bama-light | 100 | MIT |
| ciro-maciel/ccm-stack | 85 | MIT |
Database snapshot: 13.11.2026 · package version 7c0678afd901 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90macos-swiftpm
Build, run, and test SwiftPM macOS packages and executables. Use when the repo is package-first or has no Xcode project. - 100guide-macos-spm-packaging
Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project. Use when you need a from-scratch macOS app layout, SwiftPM targets/resources, a custom .app bundle assembly script, or signing/notarization/appcast steps outside Xcode. - 95macos-spm-app-packaging
Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project. Use when you need a from-scratch macOS app layout, SwiftPM targets/resources, a custom .app bundle assembly script, or signing/notarization/appcast steps outside Xcode. - 100macos-apps
Build professional native macOS apps in Swift with SwiftUI and AppKit. Full lifecycle - build, debug, test, optimize, ship. CLI-only, no Xcode. Use when asked to: create macOS apps, build Swift apps, develop SwiftUI interfaces, fix macOS app issues, add macOS app features, or… - 100macos-spm-app-packaging
Turns a Swift Package Manager executable into a real macOS .app without an Xcode project: builds the binary, assembles the bundle and Info.plist, signs it, and for distribution notarizes, staples and wraps it in a zip or disk image. Covers universal binaries, resources and… - 100new-mac-app
Create a native macOS SwiftUI app from a working template (Swift package, SwiftData, build script, icon script, snapshot mode, git), with no Xcode GUI. Use when the user wants to start a new Mac app or scaffold a macOS project.