Restkit: Native iOS Swift app crash in Xcode 12.5

When MKMapperOperation tries to map attribute value it throws an exception :

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<RestKitExample.xx0x600002d463e0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key token.'

enter image description here

It was working fine with code 11.xx.The crash started when I updated to Xcode 12.

I have tried following but no luck:

RestKit RKObjectMapping Swift Optional

I have created the following issue on the Restkit git repo as well. But yet no luck from there:

Read more here:

Content Attribution

This content was originally published by MOHAMMAD ISHAQ at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: