I ran into the same error message when using #Predicate in SwiftData @Query with
Xcode 26.0 beta 2,
"Swift Language Version" Swift 6,
and Setting "Default Actor Isolation" on MainActore (section Swift Compiler - Concurrency).
Setting the "Default Actor Isolation" to nonisolated and inserting @MainActor above @Observable inside the code resolved the problem.
Topic:
Programming Languages
SubTopic:
Swift
Tags: