You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just started exploring the Marshal and tried to build some Demo, using carthage.
But getting error : Ambiguous reference to member 'value(for:inContext:)'
Line of code in my project :
let obj = personsJSON()
let context = DeserializationContext()
let people: [Person] = try! obj.value(for: "people", inContext: context) // Getting error on this line
Can you please check and let me know whats the issue.
Thank you
Nitesh
The text was updated successfully, but these errors were encountered:
I had the same issue. Please insert this code in do {} catch {} (remove ! after try) statement and check whats going on. Maybe it will show another error. Also check if your person class implements these two protocols UnmarshalingWithContext, UnmarshalUpdatingWithContext
Milczi
Hi,
I have just started exploring the Marshal and tried to build some Demo, using carthage.
But getting error : Ambiguous reference to member 'value(for:inContext:)'
Line of code in my project :
let obj = personsJSON()
let context = DeserializationContext()
let people: [Person] = try! obj.value(for: "people", inContext: context) // Getting error on this line
Can you please check and let me know whats the issue.
Thank you
Nitesh
The text was updated successfully, but these errors were encountered: