roomorama / RMMapper

Other
208 stars 42 forks source link

this class is not key value coding-compliant for the key observationInfo #10

Closed kiroskirin closed 10 years ago

kiroskirin commented 10 years ago

This happened with ios8 devices GM - Xcode 6 GM

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSObject 0x3ca13050> valueForUndefinedKey:]: this class is not key value coding-compliant for the key observationInfo.' --- File : NSObject + RMArchivable.m --- Line : 25 - 30 --- Code :
for (NSString* key in propertyDict) { if (!excludedProperties || ![excludedProperties containsObject:key]) { id value = [self valueForKey:key]; [encoder encodeObject:value forKey:key]; }
}

naartjie commented 10 years ago

I'm getting the same error. Building in Xcode 6 GM and running on any iOS 8 simulator.

leoru commented 10 years ago

Guys, i fix this bug in PR #11. I think maintainer will merge PM soon.

thomasdao commented 10 years ago

Thanks @leoru :+1: , I merged the PR and will push to CocoaPods soon. In the mean time you can use this to get latest code:

pod 'RMMapper', :git => 'https://github.com/roomorama/RMMapper.git'

thomasdao commented 10 years ago

FYI, you can use latest cocoapods: pod 'RMMapper', '~> 1.1.2'