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?