Swift Core Data Fatal Eror

I am learning to work with core data. But why did I get such an error?

Error Image

My Core Data Codes

My Core Data Settings

edit: the problem was due to my renaming "Entity". It's fixed

Upvotes: 0

Views: 74

Answers (1)

HunterLion
HunterLion

Reputation: 4016

You might have changed the Core Data model (names or types of the attributes) after populating it with some data. Xcode could not be able to migrate the existing data from the old model to the new one.

You can try re-creating the model from scratch (deleting the whole Entity) if you don’t mind losing the existing data.

Upvotes: 2

Related Questions