-
Notifications
You must be signed in to change notification settings - Fork 73
Description
Description
Description:
The SyncEngine.swift file references CKErrorCode.participantAlreadyInvited on line 1746 without the proper availability guard, causing a compilation error.
Error:
Type 'CKErrorCode' has no member 'participantAlreadyInvited'
Location:
File: Sources/SQLiteData/CloudKit/SyncEngine.swift
Line: ~1746
Issue:
While line 1740-1742 correctly wraps .participantAlreadyInvited in #if canImport(FoundationModels), line 1746 references it again in a different switch case without the guard.
Environment:
Xcode: 16.1
iOS Deployment Target: 18.0+
Suggested Fix:
Remove .participantAlreadyInvited from the case statement on line 1746 and add it as a separate guarded case:
#if canImport(FoundationModels)
case .participantAlreadyInvited:
break
#endif
Checklist
- I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
- I have determined whether this bug is also reproducible in a vanilla GRDB project.
- If possible, I've reproduced the issue using the
mainbranch of this package. - This issue hasn't been addressed in an existing GitHub issue or discussion.
Expected behavior
No response
Actual behavior
No response
Reproducing project
No response
SQLiteData version information
v1.4.1
Sharing version information
No response
GRDB version information
No response
Destination operating system
iOS 18
Xcode version information
16.1
Swift Compiler version information
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0