apple: unbreak the release build on macOS and iOS #24

Merged
founder merged 1 commit from apple-release-build-fixes into main 2026-08-01 08:54:59 +00:00
Owner

build-release has been failing on both Apple platforms, for two unrelated reasons.

iOS — NSFileProviderDomain(identifier:displayName:) is iOS 16 / macOS 13+, but several targets declare minimum_os_version = "15.0", so it was a hard compile error. Guarded at the call site rather than raising the deployment target.

macOS — bazel/apple/runner.sh keeps a hand-maintained swift_sources() list duplicating the Bazel srcs, and they had drifted:

file BUILD.bazel runner.sh
AccountSessionDefaults.swift ✅ ❌
FileProviderRegistration.swift ✅ ❌

Hence cannot find 'KeyStoreAccountSessionDefaults' in scope — the definition wasn't in the module. Lists now agree in the direction that matters; the 5 remaining extras are genuinely macOS-only.

That duplication is the underlying hazard: drift surfaces as a confusing scope error rather than a missing-file one.

🤖 Generated with Claude Code

`build-release` has been failing on both Apple platforms, for two unrelated reasons. **iOS** — `NSFileProviderDomain(identifier:displayName:)` is iOS 16 / macOS 13+, but several targets declare `minimum_os_version = "15.0"`, so it was a hard compile error. Guarded at the call site rather than raising the deployment target. **macOS** — `bazel/apple/runner.sh` keeps a **hand-maintained `swift_sources()` list duplicating the Bazel `srcs`**, and they had drifted: | file | BUILD.bazel | runner.sh | |---|---|---| | `AccountSessionDefaults.swift` | ✅ | ❌ | | `FileProviderRegistration.swift` | ✅ | ❌ | Hence `cannot find 'KeyStoreAccountSessionDefaults' in scope` — the definition wasn't in the module. Lists now agree in the direction that matters; the 5 remaining extras are genuinely macOS-only. That duplication is the underlying hazard: drift surfaces as a confusing *scope* error rather than a missing-file one. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
apple: unbreak the release build on macOS and iOS
Some checks failed
Release: If Needed / Check (Release Needed) (push) Successful in 6s
Namespace: Build Images / Refresh macOS runner lane (push) Successful in 6s
Deploy: Web / Deploy (Web) (push) Failing after 9s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 22s
Build: Apple / Check (SwiftLint) (push) Successful in 17s
Build: Apple / Build (visionOS) (pull_request) Successful in 25s
Build: Apple / Build (iOS) (pull_request) Successful in 28s
Release: Signing Preflight / Release (Signing Preflight) (push) Successful in 56s
Build: Apple / Build (iOS) (push) Successful in 33s
Build: Apple / Build (visionOS) (push) Successful in 24s
Namespace: Build Images / Refresh Linux runner image (push) Successful in 2m5s
Build: Apple / Build (macOS) (pull_request) Successful in 1m53s
Build: Apple / Build (macOS) (push) Successful in 1m53s
Deploy: API / Deploy (API) (push) Successful in 2m51s
af072293e5
build-release has been failing on both Apple platforms, for two unrelated
reasons.

iOS: NSFileProviderDomain(identifier:displayName:) is iOS 16 / macOS 13 and
later, but several targets still declare minimum_os_version 15.0, so the call
was a hard compile error. Guard at the call site rather than raising the
deployment target -- on an older system the app now runs without a registered
domain instead of failing to build.

macOS: bazel/apple/runner.sh keeps a hand-maintained `swift_sources()` list that
duplicates the Bazel `srcs` for key_store_apple_app_sources, and the two had
drifted. AccountSessionDefaults.swift and FileProviderRegistration.swift were in
BUILD.bazel but not in the shell list, so the macOS compile failed with
"cannot find 'KeyStoreAccountSessionDefaults' in scope" -- the definition simply
was not in the module. Added both; the lists now agree in the direction that
matters (nothing in BUILD.bazel is absent from runner.sh), and the five
remaining extras are genuinely macOS-only sources.

That duplication is the underlying hazard: two source lists that must be kept in
step by hand, where drift surfaces as a confusing scope error rather than a
missing-file error.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!24
No description provided.