Coredata uses a third-party library magicalrecord,
Reference: http://blog.csdn.net/kuizhang1/article/details/21200367
To upgrade the coredata database, follow these steps:
Http://www.07net01.com/zhishi/411401.html
Test and upgrade based on the two articles without any problems. My demo project:
Https://github.com/lichanghong/CoreDataVersionTest
Some information on the internet says:
If your app uses coredata technology, crash will occur when you modify the DB field and upgrade it to the new version. because only the application app is upgraded, the DB files in the update directory are not. If it is under development, you only need to install the deleate app again. If it is a virtual machine, you only need to reset the simulator. If it is the software uploaded to the appstore, you must be careful with it. If the app is not processed by migrate, the user will inevitably crash after upgrading.
But I did not find the crash phenomenon in my tests.
Add fields in the old version of coredata to test whether the new version can continue to use the old version (use of magicalrecord)