Post

Replies

Boosts

Views

Activity

Reply to NSFetch Request return sum over computed properties
If you're using the SQLite persistent store, then that code won't work at all. The limitation is caused by CoreData pushing the processing of the request to the database engine but the database engine can't see the "software implemented" properties. This took me several hours of searching to find, thank you for the explanation! For reference, I was attempting to create a SortDescriptor based on a computed property on a CoreData entity. Here are a few breadcrumbs for the next person: Core Data: Fatal Error sorting using a computed property Creating a SortDescriptor in Swift from a computed property on a CoreData entity Error message - keypath not found in entity with userinfo of (null) Must be introspectable by the objective-c runtime
Oct ’22