I have a weird crash that happens to barley ever, and I wonder if this could be due to corrupted data? I have this error:
-[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive
> # Binary Image Name Address Symbol 0 CoreFoundation 0x3357b2a3 __exceptionPreprocess
> 1 libobjc.A.dylib 0x3b3df97f objc_exception_throw
> 2 CoreFoundation 0x3357b1c5 -[NSException initWithCoder:]
> 3 Foundation 0x33e124ef -[NSKeyedUnarchiver initForReadingWithData:]
> 4 Foundation 0x33e73537 +[NSKeyedUnarchiver unarchiveObjectWithFile:]
My code is fine, and this happened once in my application, but I'm just wondering if corrupted data is a viable cause for this. and if so, is there a way to deal with damaged data?
source
share