简体   繁体   中英

How to migrate core data model from 'xcdatamodel' to 'xcdatamodeld'?

I am using core data in XCode 11 with the MagicalRecord library. My records are lost after app update. I have also tried to migrate the core data model from xcdatamodel to xcdatamodeld . Has anyone else faced the same issue? Any help would be appreciated.

I faced the same issue. It is a bug in magical record. You don't need to name your sqlite store like "xcdatamodeld". Any name will be ok.

I made a pull request https://github.com/magicalpanda/MagicalRecord/pull/1378

You can replace the line in Podfile if you like

pod 'MagicalRecord', :git => 'https://github.com/expkzb/MagicalRecord'

Have a try please.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM