如何在SDK模拟器中模拟iPhone应用升级过程 [英] How can simulate the IPhone app upgrade process in the SDK simulator

查看:27
本文介绍了如何在SDK模拟器中模拟iPhone应用升级过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款 iPhone 应用,即将发布第 2 版.我们将更改核心数据模型,我想在向用户发布之前在模拟器中模拟升级过程并可能导致数据丢失为他们.在发布之前,似乎没有任何关于如何在沙箱中执行此操作的真正好的文档.

I'm working on an iPhone app and about to release version 2. We'll be changing the core data model and I'd like to simulate the upgrade process in the simulator before releasing it to users and potentially causing data loss for them. There doesn't seem to be any real good doucumentation on how to do this in a sandbox before releasing it.

推荐答案

我过去使用的过程是从模拟器中擦除任何工作版本,从我的存储库中查看我的应用程序的先前版本,编译并安装它,使用它一段时间,然后编译并安装应用程序的新版本.新版本的安装应该模拟升级过程,您可以在其中测试数据迁移到新模型.

The process I've used in the past has been to wipe any working version from the Simulator, check out the previous version of my application from my repository, compile and install that, work with it for a bit, then compile and install the new version of the application. The installation of the new version should simulate the upgrade process, where you can test your data migration to your new model.

我也在设备上重复这个过程,以确保那里也没有遇到任何问题.

I also repeat this process on the device to make sure no problems are encountered there either.

这篇关于如何在SDK模拟器中模拟iPhone应用升级过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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