Reputation: 26
I've added a new attribute to an entity called minimumOrderValue
, but when I try to read or write to it on code, it raises the exception unrecognized selector sent to instance 0x2831a1040'
and terminates the app.
It is of type Decimal, and it is declared like so in the swift file (I'm updating the swift files manually for several reasons):
@NSManaged var minimumOrderValue: Decimal
I created a new model version before creating the attribute.
I wonder what the problem would be.
Upvotes: 0
Views: 417
Reputation: 26
I found the issue. The version was being set programatically somewhere else in the code, instead of being updated automatically.
Upvotes: 1