Post

Replies

Boosts

Views

Activity

Reply to SwiftData fatal error SwiftData.SwiftDataError._Error.loadIssueModelContainer)
The answer to your question is present in the error: "Validation error missing attribute values on mandatory destination attribute." You've previously saved some models with a prior version of a Schema that did not have the isApero attribute and in the latest version of the model, you've added that attribute as non-optional. You should check out [VersionedSchema] (https://developer.apple.com/documentation/swiftdata/versionedschema) and SchemaMigrationPlan
Mar ’24