iOS开发笔记(八)How to test an iPhone application update?

http://stackoverflow.com/questions/2524326/how-to-test-an-iphone-application-update

 

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.

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

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.

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 it's upgrade code to modify the database in the way you need.

Hope this helps :)

 

Test like so:

  1. delete app from device.
  2. install v1.0 app (or .ipa file) into iTunes
  3. sync to device, iTunes will install the app
  4. launch app on device, create and save data, etc.
  5. quit app on device
  6. install v1.1 app (or .ipa file) into iTunes; iTunes will ask to confirm replacing older version of the app.
  7. sync to device, iTunes will update the app
  8. launch app on device
  9. test using existing data with new version of the app.

 

转载于:https://www.cnblogs.com/chiniao/archive/2010/10/30/1864467.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值