You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 14, 2026. It is now read-only.
MESContinent is a NSManagedObject subclass. It has a String field called name.
[<MESContinent 0x9be07f0> setValue:forUndefinedKey:]: the entity (null) is not key value coding-compliant for the key "name".
(
0 CoreFoundation 0x01bff5e4 __exceptionPreprocess + 1801 libobjc.A.dylib 0x019828b6 objc_exception_throw + 442 CoreFoundation 0x01c8f6a1 -[NSExceptionraise] + 173 CoreData 0x002514c4 -[NSManagedObjectsetValue:forUndefinedKey:] + 3404 Foundation 0x015aff3b _NSSetUsingKeyValueSetter + 885 CoreData 0x001dbe28 -[NSManagedObjectsetValue:forKey:] + 1206 BDDReactiveCocoa 0x0000bb47 -[NSObject(AutoCoding) setWithCoder:] + 9197 BDDReactiveCocoa 0x0000bc4b -[NSObject(AutoCoding) initWithCoder:] + 598 Foundation 0x01595d6a _decodeObjectBinary + 34989 Foundation 0x01594e55 _decodeObject + 34010 Foundation 0x01594cf9 -[NSKeyedUnarchiverdecodeObjectForKey:] + 18111 Foundation 0x016068cd +[NSKeyedUnarchiverunarchiveObjectWithData:] + 106
Reproduction
As a part of further investigation into #13, I wrote a failing test that doesn't use HRCoder. Please run it:
git clone https://github.com/fatuhoku/autocoding-demo
pod install
open BDDReactiveCocoa.xcworkspace
... and then run the BDDReactiveCocoaSpecs target on an iPad Simulator.
If you look in BDDReactiveCocoaSpecs/BDDObjectModelSpecs.m, you can see that I'm trying to just encode and decode an NSManagedObject subclass to and from NSData.
NSData *outgoingData = [NSKeyedArchiverarchivedDataWithRootObject:europe];
// Pretend that we've stored it somewhere and we're now retrieving itNSData *incomingData = outgoingData;
MESContinent *incomingEurope = [NSKeyedUnarchiverunarchiveObjectWithData:incomingData]; // Fails on this line.
Specific Error
MESContinentis aNSManagedObjectsubclass. It has aStringfield calledname.Reproduction
As a part of further investigation into #13, I wrote a failing test that doesn't use HRCoder. Please run it:
... and then run the
BDDReactiveCocoaSpecstarget on an iPad Simulator.If you look in
BDDReactiveCocoaSpecs/BDDObjectModelSpecs.m, you can see that I'm trying to just encode and decode anNSManagedObjectsubclass to and fromNSData.