From b27947cb9c1680a99725c149991f4ac816693305 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 13 Jan 2025 10:29:26 -0800 Subject: [PATCH 1/2] Fix Swift 6.x warnings Fixes https://github.com/keith/reminders-cli/issues/92 --- Sources/RemindersLibrary/EKReminder+Encodable.swift | 2 +- Sources/RemindersLibrary/NaturalLanguage.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/RemindersLibrary/EKReminder+Encodable.swift b/Sources/RemindersLibrary/EKReminder+Encodable.swift index 3821b0c..f9f9fdb 100644 --- a/Sources/RemindersLibrary/EKReminder+Encodable.swift +++ b/Sources/RemindersLibrary/EKReminder+Encodable.swift @@ -1,6 +1,6 @@ import EventKit -extension EKReminder: Encodable { +extension EKReminder: @retroactive Encodable { private enum EncodingKeys: String, CodingKey { case externalId case lastModified diff --git a/Sources/RemindersLibrary/NaturalLanguage.swift b/Sources/RemindersLibrary/NaturalLanguage.swift index e38ab3c..b9f9baf 100644 --- a/Sources/RemindersLibrary/NaturalLanguage.swift +++ b/Sources/RemindersLibrary/NaturalLanguage.swift @@ -44,7 +44,7 @@ private func components(from string: String) -> DateComponents? { } } -extension DateComponents: ExpressibleByArgument { +extension DateComponents: @retroactive ExpressibleByArgument { public init?(argument: String) { if let components = components(from: argument) { self = components From eac4a8305a164f3c399aef86df734be3530da727 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 13 Jan 2025 10:30:14 -0800 Subject: [PATCH 2/2] xcode bump --- .github/workflows/swift.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index f247f88..df677be 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -8,11 +8,11 @@ name: Swift jobs: build: - runs-on: macos-13 + runs-on: macos-14 steps: - uses: actions/checkout@v3 - name: xcode-select - run: sudo xcode-select -s /Applications/Xcode_15.0.app + run: sudo xcode-select -s /Applications/Xcode_16.2.app - name: Build run: swift build -Xswiftc -warnings-as-errors - name: Test