Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can simulate the IPhone app upgrade process in the SDK simulator

I'm working on an iPhone app and about to release version 2. We'll be changing the core data model and I'd like to simulate the upgrade process in the simulator before releasing it to users and potentially causing data loss for them. There doesn't seem to be any real good doucumentation on how to do this in a sandbox before releasing it.

like image 798
Chris Avatar asked Mar 03 '10 23:03

Chris


People also ask

How do I simulate an iOS app update?

Q2: You can simulate an app update by publishing multiple versions in TestFlight and changing between them. Another method is to install the app on the device, and then open Settings => General => iPhone Storage. Select your app and press "Offload App".

How can you access iOS simulator in Xcode?

Do one of the following: Choose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.


2 Answers

The process I've used in the past has been to wipe any working version from the Simulator, check out the previous version of my application from my repository, compile and install that, work with it for a bit, then compile and install the new version of the application. The installation of the new version should simulate the upgrade process, where you can test your data migration to your new model.

I also repeat this process on the device to make sure no problems are encountered there either.

like image 91
Brad Larson Avatar answered Sep 24 '22 02:09

Brad Larson


there are some cases that cannot be simulated in Xcode. Look at this Apple page: https://developer.apple.com/library/ios/technotes/tn2285/_index.html

You have to create IPA file and simulate update via iTunes.

like image 45
Michal Politzer Avatar answered Sep 24 '22 02:09

Michal Politzer