Skip to content

chore: fix build-release failing under newer Swift toolchain - #112

Closed
udondan wants to merge 1 commit into
keith:mainfrom
udondan:fix-build-release
Closed

udondan wants to merge 1 commit into
keith:mainfrom
udondan:fix-build-release

Conversation

@udondan

@udondan udondan commented Sep 13, 2026

Copy link
Copy Markdown

Summary

  • make build-release failed under a newer Swift toolchain (Swift 6.3) because -Xswiftc -warnings-as-errors applied to the entire build graph, turning warnings inside the swift-argument-parser dependency (Sendable-conformance notes) into hard build errors.
  • Bumped swift-argument-parser from a 1.3.x-only range to allow up to the next major (resolves to 1.8.2), which fixes those Sendable warnings.
  • Scoped -warnings-as-errors to only our own targets (reminders, RemindersLibrary) via swiftSettings in Package.swift, instead of the whole build, so future warnings in third-party dependencies won't break the build again.
  • Migrated listNameCompletion off the now-deprecated single-argument .custom(...) completion closure to the three-parameter signature required by the newer ArgumentParser.

Test plan

  • make build-release succeeds and produces a working universal (arm64/x86_64) binary
  • swift test runs (3 pre-existing, unrelated NaturalLanguageTests failures due to Calendar/NSDataDetector behavior differences on this OS/locale — not touched by this change)

-Xswiftc -warnings-as-errors was applied to the whole build graph,
so any warning surfacing in swift-argument-parser under a newer
Swift compiler broke the build. Scope the flag to our own targets
via Package.swift swiftSettings instead, bump swift-argument-parser
past 1.3.x to pick up its Sendable-conformance fixes, and migrate
off its now-deprecated single-argument completion closure API.
@udondan udondan closed this Sep 13, 2026
@udondan
udondan deleted the fix-build-release branch September 13, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant