guide-macos-spm-packaging

Scaffold, build, sign, and package SwiftPM macOS apps into .app bundles.

Updated May 6, 2026
One-click install
npx skills add https://github.com/Roy-wonji/claude-config --skill guide-macos-spm-packaging-roy-wonji
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guide-macos-spm-packaging
Source: https://github.com/Roy-wonji/claude-config/tree/main/skills/apple-skills/skills/guide-macos-spm-packaging
Command: npx skills add https://github.com/Roy-wonji/claude-config --skill guide-macos-spm-packaging-roy-wonji

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

Automates the end-to-end process of scaffolding, building, packaging, and releasing a macOS SwiftPM app without relying on an Xcode project, including signing and optional notarization/appcast steps.

Core Features & Use Cases

  • From-scratch SwiftPM macOS app packaging: Bootstrap an app’s folder layout, then build and run it using SwiftPM commands only.
  • Production-style bundle assembly: Create a proper .app bundle by assembling the binary, resources, frameworks, Info.plist, and optional icon assets.
  • Signing, notarization, and release automation (optional): Perform ad-hoc or Developer ID signing, notarize with App Store Connect credentials, staple the ticket, and generate Sparkle appcast entries for updates.

Quick Start

Copy the provided bootstrap template into a new repo, then run the packaging flow by building with swift build and packaging via Scripts/package_app.sh, followed by Scripts/compile_and_run.sh to launch the packaged .app.

Frequently Asked Questions about guide-macos-spm-packaging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I package a SwiftPM macOS app into a valid .app bundle without using an Xcode project?

To package a SwiftPM macOS app without Xcode, you scaffold the folder layout, build with swift build, and assemble the binary, resources, Info.plist, and frameworks into a valid .app bundle using custom assembly logic.

Can I code sign and configure hardened runtime for a Swift desktop app built with SwiftPM?

Yes, SwiftPM macOS app packaging supports code signing with entitlements and hardened runtime configuration, enabling both ad-hoc and Developer ID signing for your Swift desktop application.

Does SwiftPM app packaging support notarization and Sparkle appcast generation for releases?

SwiftPM app packaging supports optional release automation including notarization with App Store Connect credentials, ticket stapling validation, and generating Sparkle appcast entries for automated updates.

What's the best way to bootstrap a from-scratch macOS desktop app repository using SwiftPM targets?

The best way to bootstrap a from-scratch macOS desktop app is to copy a provided template into a new repo, configure SwiftPM targets and resources, then run Scripts/package_app.sh and Scripts/compile_and_run.sh.

Do I need Xcode installed to build, sign, and release a macOS SwiftPM app?

No, you do not need an Xcode project to build, sign, and release a macOS SwiftPM app; the entire end-to-end process from scaffolding to notarization can be automated using SwiftPM commands and shell scripts.