ADR 0001 — Minimum macOS version, toolchain and build layout
Status: accepted (2026-11-22)
Context
Development machine: macOS 27.0 (26A5425a), Xcode 27.2, Swift 6.4.2, Apple silicon. Signing identities present: one Developer ID Application, two Apple Development. xcodegen is installed; SwiftLint and SwiftFormat are not.
Options
- Deployment target = installed macOS (27). Newest APIs, smallest audience.
- Current minus one major (26), the directive's recommended default.
- Older (15), widest audience, more availability checks, cannot be tested here.
Decision
- Deployment target macOS 26 (
.macOS(.v26)), Swift tools 6.2+, Swift 6 language mode (strict concurrency) for every target. - One root
Package.swift; each module is a target whose sources live underpackages/<name>/Sourceswith tests underpackages/<name>/Tests. Modules are added only when they hold real code and tests. - Apps are SwiftPM executables (
apps/prism-macos,apps/prism-satellite-host,apps/prism-cli).scripts/build.shwraps the executables into.appbundles (Info.plist, icon, resources, code signature). No Xcode project is checked in. - No SwiftPM resource bundles in targets linked into apps.
Bundle.moduleof an executable resolves next to the.approot, which breaks code signing. Catalog manifests are Swift values; templates are copied intoContents/Resourcesby the build script and read throughBundle.main. - No third-party dependencies in V1. SQLite, CryptoKit, Swift Charts, Security and AppKit come with the system.
- Lint = compiler warnings treated as errors in
scripts/verify.shplusscripts/lint.sh(repository-specific checks: no secrets, no dead-control markers, file size cap). Adding SwiftLint is an install outside the repository and needs the owner's approval.
Consequences
- Nothing is verified on macOS 26; only macOS 27 has been run.
STATUS.mdsays so. - UI automation through XCUITest needs an Xcode project; until one is justified, UI behaviour is tested through view models and off-screen rendering under
swift test, and smoke-tested by launching the bundle.