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

查看:174
本文介绍了如何测试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.

然后我们使用基于配置的配置构建应用程序的Ad Hoc分布释放配置,并确保它具有相同的包标识符。只要捆绑包标识符相同,新应用程序就会覆盖以前的版本。

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.

正如您所料,文档文件夹应保持不变,保留数据库,您的应用程序应该能够运行其升级代码以你需要的方式修改数据库。

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天全站免登陆