wow, you really save programming programs here. It's hard to say with this snippet, but ... My best suggestion is to split these lines into several lines, for example
NSPredicate *myPredicate = ... if (myPredicate) { NSLog (@"Predicate exists"); }
And keep going so that line by line to make sure you get the right feedback. This is what I do. May help a little
source share