In Xcode 15 beta 3 and iOS 17 beta 3, my app with SwiftData keeps generating error:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSManagedObject 0x2811cb390> setValue:forUndefinedKey:]: the entity dataSets is not key value coding-compliant for the key "(null)".'
I have a model:
@Model final class Station: Sendable {
...
var dataSets: [String]
}
The error seems to occur when saving entities of the model in SwiftData. There is no entity named "dataSets". Only a property in the above model. What's the null key in the error?