Simulating an update in iPhone SDK?

为君一笑 提交于 2019-12-06 11:48:23

问题


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.


回答1:


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

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




回答2:


Build and install your old version, generate some data, and then install the new version on top of it.

For testing before submitting to the Appstore I generally download from the AppStore again the old version, and then install with Xcode the newer version - for your next update... ;-)



来源:https://stackoverflow.com/questions/3268079/simulating-an-update-in-iphone-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!