Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoa error 256 core data

I have error "Cocoa error 256" when I try to save data. How to fix it? And what problem?

like image 306
Sergey Zenchenko Avatar asked Dec 16 '09 15:12

Sergey Zenchenko


2 Answers

According to the help reference in Xcode:

NSFileReadUnknownError Read error, reason unknown

Available in Mac OS X v10.4 and later.

Declared in FoundationErrors.h.

Sadly, that's probably not too helpful, though it is an unknown -read- error.

like image 152
Aaron Avatar answered Oct 04 '22 02:10

Aaron


If its a core data error there is probably an actual error object somewhere near where the error occurs. If you dump the error objects userInfo dictionary, you can usually get a lot more detail than just the error code itself.

like image 28
TechZen Avatar answered Oct 04 '22 02:10

TechZen