Hi,
I'm fairly new to RestKit as I started with 0.20.pre on a new project. So far - apart from usual beginner mistakes - everything worked fine. However, now after updating from 0.20.rc1 to 0.20.1 I'm having a problem that I don't understand.
The situation is that I have a CoreData entity "Self" and a corresponding NSManagedObject "CSelf". Also the RKEntityMapping and the RKResponseDescriptor are set up correctly I believe. To fetch the data from the API I make a request by doing:
[[RKObjectManager sharedManager] getObject:[CSelf class] path:API_SELF_URL parameters:nil success:...
Now in 0.20.rc1 everything works fine as the data is fetched and mapped without any errors. In 0.20.1 however, I receive the following error:
'NSUnknownKeyException', reason: '[<CSelf 0x1122a8> valueForUndefinedKey:]: this class is not key value coding-compliant for the key userID.'
The app then breaks pointing to the line 363 in RKResponseMapperOperation.m and crashes.
I've checked various versions of RK and found that everything works fine up to 0.20.rc1 and the error starts occurring in from the final 0.20.0 release onwards.
As I'm the newbie I wonder where the mistake is: me or RK? Am I doing something wrong or is this a bug?
Thanks in advance!
-- Frane