Tuesday, June 5, 2012

CoreData and NSCocoaErrorDomain Code 1570

Seems like iOS CoreData doesn't like non-existing values i.e. "nil".

Didn't realize at first that something was wrong, because a) I wasn't very familiar with Coredata, just inherited the code to be upgraded and b) I created my own caching on top of CoreData to compensate some issues with CoreData. Then found this error buried deep into console logs:
CoreData Error Domain=NSCocoaErrorDomain Code=1570 "The operation couldn’t be completed. (Cocoa error 1570.)