From b62792d114f6e6bf19c3d37028790033f9660710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Kope=C4=87?= Date: Tue, 30 Jan 2024 17:08:38 +0100 Subject: [PATCH 1/2] Dropped `names:` macro definition of `_PersistedProperty` This fixes an issue with Xcode 15.2 compilation error. --- Sources/ManagedModels/ModelMacroDefinition.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ManagedModels/ModelMacroDefinition.swift b/Sources/ManagedModels/ModelMacroDefinition.swift index d72f881..77324b5 100644 --- a/Sources/ManagedModels/ModelMacroDefinition.swift +++ b/Sources/ManagedModels/ModelMacroDefinition.swift @@ -63,7 +63,7 @@ public macro Transient() = * An internal helper macro. Don't use this. */ @available(swift 5.9) -@attached(accessor, names: named(init)) +@attached(accessor/*, names: named(init)*/) public macro _PersistedProperty() = #externalMacro(module: "ManagedModelMacros", type: "PersistedPropertyMacro") From 7034247e0b0668ef3f29adc233cbbbef659458a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Kope=C4=87?= Date: Tue, 30 Jan 2024 17:12:55 +0100 Subject: [PATCH 2/2] Changed Xcode version to 15.2 in GitHub Actions This changes the `xcode-version` parameter of the workflow to use Xcode 15.2 in order to check for proper compilation on the latest release --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 18a5d8c..927c848 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -11,7 +11,7 @@ jobs: - name: Select latest available Xcode uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '15.0.0' + xcode-version: '15.2.0' - name: Checkout Repository uses: actions/checkout@v2 - name: Build Swift Debug Package