Skip to content

Getting crash App While Mapping #124

@krishnasolankiBigbang

Description

@krishnasolankiBigbang

Hello
I am using swift verison pod 'FastEasyMapping', '~> 1.2'.

I am getting error :: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<__NSCFString 0x6000001d97e0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key ID
Getting exception in line FEMDeserializer.collection(fromRepresentation: arrPlanVisit, mapping: ABC.defaultmapping(), context: localContext)

class of ABC is ::
import UIKit

@objc(ABC)
class ABC: NSManagedObject {
//
@NSManaged var ID: Int64

class func defaultmapping()->FEMMapping{
let mapping = FEMMapping.init(entityName: "ABC")
mapping.addAttribute(Mapping.intAttributeFor(property: "iD", keyPath: "ID"))
return mapping
}

Response from Server ::

  • key : "ABC"
    ▿ value : 10 element
    ▿ 8 : 2 elements
    - key : ID
    - value : 1641
    @dimazen any solution for this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions