ios - Core data exception: initWithCoder:]: unrecognized selector sent -
i'm experiencing issue using core data.
coredata: error: exception during fetchrowforobjectid: -[pharmaceuticalcomp initwithcoder:]: unrecognized selector sent instance 0x9ab1920 userinfo of (null) 2014-08-18 07:56:55.784 horizonmemory[1357:60b] coredata: error: serious application error. exception caught during core data change processing. bug within observer of nsmanagedobjectcontextobjectsdidchangenotification. -[pharmaceuticalcomp initwithcoder:]: unrecognized selector sent instance 0x9ab1920 userinfo (null) 2014-08-18 07:56:55.786 horizonmemory[1357:60b] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[pharmaceuticalcomp initwithcoder:]: unrecognized selector sent instance 0x9ab1920' *** first throw call stack: ( 0 corefoundation 0x021981e4 __exceptionpreprocess + 180 1 libobjc.a.dylib 0x01f178e5 objc_exception_throw + 44 2 corefoundation 0x02235243 -[nsobject(nsobject) doesnotrecognizeselector:] + 275 3 corefoundation 0x0218850b ___forwarding___ + 1019 4 corefoundation 0x021880ee _cf_forwarding_prep_0 + 14 5 foundation 0x01b2a01a _decodeobjectbinary + 3498 6 foundation 0x01b2b4d7 -[nskeyedunarchiver _decodearrayofobjectsforkey:] + 2204 7 foundation 0x01b2b746 -[nsarray(nsarray) initwithcoder:] + 255 8 foundation 0x01b2a01a _decodeobjectbinary + 3498 9 foundation 0x01b2b4d7 -[nskeyedunarchiver _decodearrayofobjectsforkey:] + 2204 10 foundation 0x01b37ff1 -[nsdictionary(nsdictionary) initwithcoder:] + 261 11 foundation 0x01b2a01a _decodeobjectbinary + 3498 12 foundation 0x01b29106 _decodeobject + 340 13 foundation 0x01b28faa -[nskeyedunarchiver decodeobjectforkey:] + 181 14 foundation 0x01b9aa86 +[nskeyedunarchiver unarchiveobjectwithdata:] + 106 15 foundation 0x01b197d5 -[_nskeyedunarchivefromdatatransformer transformedvalue:] + 47 16 coredata 0x024205b9 _prepareresultsfromresultset + 4105 17 coredata 0x0241de33 newfetchedrowsforfetchplan_mt + 1
pharmacomp nsmanaged subclass linked entity user
transient property -linkedpharma
. user has property in readonly mode. every time call linkedpharma starts fetch request provides me pharmacomp instance. when try delete user, exception. strange fact linkedpharma property not listed in model, pharmacomp shouldn't involved in sort of operation.the other fact seems try use nskeyedunarchivier on it, don't understand why.
no object hearing nsmanagedobjectcontextobjectsdidchangenotification
.
have no idea came from.
the solution pretty simple.
user had relationship transformable container (nsarray) holding (for bug) pharmacomp instance.
Comments
Post a Comment