Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting crash App While Mapping #124

Open
krishnasolankiBigbang opened this issue Apr 19, 2020 · 0 comments
Open

Getting crash App While Mapping #124

krishnasolankiBigbang opened this issue Apr 19, 2020 · 0 comments

Comments

@krishnasolankiBigbang
Copy link

krishnasolankiBigbang commented Apr 19, 2020

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 ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant