ParseError code=-1 error=Invalid struct: No value associated with key CodingKeys(stringValue: "objectId", intValue: nil) ("objectId")

This would happen to me when I was using a Struct name Set, Parse Swift couldn’t detect the Set struct and instead was using the class Set.

I resolved it by renaming the struct SetObject and adding static let className: String = "Set"

You can check if there are any conflicts just by using autocompletion.

Screen Shot 2022-03-25 at 11.27.32 am

Our Parse Swift expert @cbaker6 might have some other thoughts

1 Like