如何测试 iPhone 应用程序更新? [英] How to test an iPhone application update?

查看:30
本文介绍了如何测试 iPhone 应用程序更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 App Store 中提供了一个 iPhone 应用程序(1.0 版),并准备提交更新的版本(1.1 版).如何测试新升级以确保早期版本上的当前 sqlite 数据库和属性列表文件不会被删除/覆盖等?新版本假设 sqlite 数据库和属性列表中的旧数据都保留.

I already have an iPhone application (version 1.0) available in the App Store and am ready to submit a newer version (version 1.1). How do I test the new upgrade to make sure that the current sqlite database and property list files on the earlier version do not get deleted/overwritten etc? The new version assumes the old data in both the sqlite database and property lists remain.

或者更好的是,有没有一种资源可以帮助我了解在开发应用程序更新时需要注意的事项?

Or better yet, is there a resource I can use to walk me through what to watch for when developing an application update?

推荐答案

当我们想要测试我们的数据库升级代码时,我们解决这个问题的方法是使用临时分发.

The way we tackled this when we wanted to test our database upgrade code was to use ad hoc distribution.

我们让测试人员从 iTunes 下载 1.0 版应用并将其安装在他们的测试设备上.

We had our testers download the 1.0 app from iTunes and install it on their test devices.

然后,我们使用基于 Release 配置的配置构建了应用的 Ad Hoc 发行版,并确保它具有相同的包标识符.只要 bundle identifier 相同,新应用就应该覆盖之前的版本.

Then we built an Ad Hoc distribution of the app using a configuration based on the Release config, and made sure that it had the same bundle identifier. As long as the bundle identifier is the same, the new app should overwrite the previous version.

我们要求我们的测试人员像往常一样安装临时版本,方法是将其拖到 iTunes 中,然后同步设备以模拟升级.

We asked our testers to install the ad hoc build as they normally would, by dragging it into itunes and then syncing the device to simulate upgrading.

据我所知,这与用户通过设备本身的应用商店下载和安装升级相同.

As far as I know, this is identical to the user downloading and installing an upgrade via the app store on the device itself.

如您所料,documents 文件夹应该保持不变,保留您的数据库,并且您的应用程序应该能够运行其升级代码以按照您需要的方式修改数据库.

As you'd expect, the documents folder should be left intact, leaving your database in place, and your app should be able to run its upgrade code to modify the database in the way you need.

希望这有帮助:)

这篇关于如何测试 iPhone 应用程序更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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