I didn't have a xcmappingmodel defined.
Isn't MagicalRecord supposed to automatically migrate new attributes?
-
24-06-2022 - |
문제
I have a CoreData store, managed using MagicalRecord. I added some new Attributes to an existing Entity. This is the code I used to setup the stack:
[MagicalRecord setupCoreDataStackWithAutoMigratingSqliteStoreNamed:@"foo.sqlite"];
When I ran the app (using the Debugger), the old store was deleted and replaced with the changed xcdatamodeld definition. It was my understanding that MagicalRecord would handle the migration automatically... am I missing something here?
해결책
제휴하지 않습니다 StackOverflow