You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overriding method in category is not a good idea. Right now I came to issue, that I added new version of my Core data model to the project. And since then I can't run the app as Core data throw an exception ('NSInternalInconsistencyException', reason: 'Can't modify an immutable model.').
Reason is that when initializing Core data stack using Magical Record, it instantiates immutable model which is completely legit and then copies some NSEntityDescriptions. Which causes initialization to fail because it is an NSObject and uses copyWithZone:. That calls implementation from NSObject+RMCopyable and that crashes because it uses setValue:forKey: which can't be used as model is immutable.
The text was updated successfully, but these errors were encountered:
Overriding method in category is not a good idea. Right now I came to issue, that I added new version of my Core data model to the project. And since then I can't run the app as Core data throw an exception ('NSInternalInconsistencyException', reason: 'Can't modify an immutable model.').
Reason is that when initializing Core data stack using Magical Record, it instantiates immutable model which is completely legit and then copies some
NSEntityDescription
s. Which causes initialization to fail because it is anNSObject
and usescopyWithZone:
. That calls implementation fromNSObject+RMCopyable
and that crashes because it usessetValue:forKey:
which can't be used as model is immutable.The text was updated successfully, but these errors were encountered: