Notes for iOS coredata application upgrade

Source: Internet
Author: User

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 you upload the software to the appstore, you must be careful with it. apps that have not been processed by migrate will inevitably crash after the upgrade.

The required technologies are coredata versioning and migrate.

Http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/CoreDataVersioning/Articles/vmLightweight.html

Http://iphonedevelopment.blogspot.com/2009/09/core-data-migration-problems.html

Http://mobile.tutsplus.com/tutorials/iphone/core-data_schema-versioning-and-lightweight-migrations/

Lightweight migrate only supports lightweight dB modifications, such as the insert/update/delete attributes. For tables, for more complex data migration, such as migrating a property * 30% to a new model, you mustMapping model

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.