1

MKMapperOperation尝试映射属性值时,它会引发异常:

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

在此处输入图像描述

它在代码 11.xx 上运行良好。当我更新到 Xcode 12 时崩溃开始了。

我试过以下但没有运气:

RestKit RKObjectMapping Swift 可选

我也在 Restkit git repo 上创建了以下问题。但是从那里没有运气:

https://github.com/RestKit/RestKit/issues/2562

4

0 回答 0