在iPhone SDK中模拟更新? [英] Simulating an update in iPhone SDK?

查看:131
本文介绍了在iPhone SDK中模拟更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个应用程序,然后更改了核心数据模型。我改变了模型,在开发过程中一切正常。但令我惊讶的是,当用户下载更新版本(使用新的核心数据模型)时,应用程序会保留以前版本的旧模型。这会导致应用程序崩溃。

I have created an app, and then later changed the core data model. I changed the model and this all works fine during development. However to my surprise, when users download the updated version (with the new core data model), the app keeps the old model from the previous version. This causes the app to crash.

有没有办法模拟更新,好像它是从应用商店更新的?我需要能够做到这一点,以便测试我可能解决问题的方法。

Is there some way to simulate an update as if it was updated from the app store? I need to be able to do this in order to test my possible solutions to the problem.

推荐答案

你无法在XCode中模拟更新,看看这个: https://developer.apple.com/library/ ios / technotes / tn2285 / _index.html

You cannot simulate update in XCode, look at this: https://developer.apple.com/library/ios/technotes/tn2285/_index.html

您必须通过iTunes在从AppStore下载的旧版本上创建IPA文件和进程更新。

You have to create IPA file and process update via iTunes over older version downloaded from AppStore.

这篇关于在iPhone SDK中模拟更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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