为已发布的 iPhone 应用程序迁移 Core Data 数据库的步骤 [英] Steps to migrate Core Data databases for shipped iPhone apps

查看:20
本文介绍了为已发布的 iPhone 应用程序迁移 Core Data 数据库的步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为已发布的更新 iPhone 应用迁移 Core Data DB 更改的推荐步骤是什么?

What are the recommended steps to be done for migrating Core Data DB changes for updated iPhone apps already shipped?

在发布 Core Data 应用程序之前,是否需要(应该)执行任何先前的步骤?

Is there any prior step one need (should) have done before shipping a Core Data app?

推荐答案

Apple 已发布关于此主题的指南:核心数据模型版本控制和数据迁移介绍编程指南

Apple has published a guide with regards to this topic: Introduction to Core Data Model Versioning and Data Migration Programming Guide

如果您发现该指南难以理解(可能是这样),这篇 SO 帖子也可能会派上用场:

If you find the guide hard to follow (and it can be), this SO post may come in handy too:

我需要做什么才能让 Core Data 自动迁移模型?

这篇关于为已发布的 iPhone 应用程序迁移 Core Data 数据库的步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆