문제

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?

도움이 되었습니까?

해결책

I didn't have a xcmappingmodel defined.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top