SPB Git

Repository Public License

0001-macos-version-and-toolchain.md 2.1 KB 24 lines markdown

1# ADR 0001 — Minimum macOS version, toolchain and build layout23**Status:** accepted (2026-11-22)45## Context6Development 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.78## Options91. Deployment target = installed macOS (27). Newest APIs, smallest audience.102. Current minus one major (26), the directive's recommended default.113. Older (15), widest audience, more availability checks, cannot be tested here.1213## Decision14- Deployment target **macOS 26** (`.macOS(.v26)`), Swift tools 6.2+, Swift 6 language mode (strict concurrency) for every target.15- **One root `Package.swift`**; each module is a target whose sources live under `packages/<name>/Sources` with tests under `packages/<name>/Tests`. Modules are added only when they hold real code and tests.16- **Apps are SwiftPM executables** (`apps/prism-macos`, `apps/prism-satellite-host`, `apps/prism-cli`). `scripts/build.sh` wraps the executables into `.app` bundles (Info.plist, icon, resources, code signature). No Xcode project is checked in.17- **No SwiftPM resource bundles in targets linked into apps.** `Bundle.module` of an executable resolves next to the `.app` root, which breaks code signing. Catalog manifests are Swift values; templates are copied into `Contents/Resources` by the build script and read through `Bundle.main`.18- **No third-party dependencies in V1.** SQLite, CryptoKit, Swift Charts, Security and AppKit come with the system.19- Lint = compiler warnings treated as errors in `scripts/verify.sh` plus `scripts/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.2021## Consequences22- Nothing is verified on macOS 26; only macOS 27 has been run. `STATUS.md` says so.23- 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.24
Files main
Menu

Theme