Reputation: 61840
The error happens when I try to create following NSPredicate
:
let predicate = NSPredicate(format: "size = nil")
The error is as follows:
Unsupported expression type (11, SIZE)
Upvotes: 3
Views: 514
Reputation: 61840
This is because size
is reserved word in Core Data. This can be fixed like this:
let predicate = NSPredicate(format: "#size = nil")
Upvotes: 11