I have an entity called Attachment where it has a to-many relationship with no inverse relationship.
I am attempting to locate all Attachment entities whose downloaded attribute is NO the relationship name is attachments and I wrote the following predicate to do this.
[NSPredicate predicateWithFormat:@"ALL attachments.downloaded == NO"]
Which results in *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unsupported predicate (null)'
This only happens on a SQLite store, if I change the store to Binary it seems to work fine. I would prefer to stick with a SQLite store.
Any ideas? Anyways to write the predicate differently to achieve the same desired result?
I seem to have found a work around for now…
I removed the predicate for the fetchrequest so that it returns all entities and then I run my predicate on the returned array
Still looking for a solution where I can execute the predicate against Core Data though