I was able to fix the problem by removing enum from my model.
I had this enum:
var goalType: GoalType = GoalType.regular
enum GoalType: Codable {
case regular
case auxiliary
case special
}
I made migration and deleted this entity from my model and the error stopped appearing.
Topic:
Programming Languages
SubTopic:
Swift
Tags: