Post

Replies

Boosts

Views

Activity

Comment on SwiftData crash when using a @Query sort descriptor with a relationship
Yeah I understand it is frustrating, just trying to help how I can. You can perhaps limit your Query with a (filter: ) or FetchDescriptor still. That is what I am doing
Replies
Boosts
Views
Activity
Feb ’25
Comment on SwiftData crash when using a @Query sort descriptor with a relationship
Best workaround is to eliminate usage of any SortDescriptor going forward. I am now using constructer properties that filter and sortBy to adapt. If you query them into an Array you can also use .sorted { $0.Date > $1.Date } for example.
Replies
Boosts
Views
Activity
Feb ’25
Comment on SwiftData crash when using a @Query sort descriptor with a relationship
This is still present in the 18.3.1 Release. SwiftData/Schema.swift:305: Fatal error: KeyPath \ContentStore.<computed 0x00000001008b6720 (BSSContent)>.<computed 0x00000001008b6728 (Date)> points to a field (<computed 0x00000001008b6720 (BSSContent)>) that is unknown to ContentStore and cannot be used.
Replies
Boosts
Views
Activity
Feb ’25