I have configured my app to use migration e.g.:
NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool:YES], NSMigratePersistentStoresAutomaticallyOption,
[NSNumber numberWithBool:YES], NSInferMappingModelAutomaticallyOption, nil];
What I want to do now is create an ad hoc build and test it on my devices.
Usually I would delete the app from iTunes and delete the app on my device and then drop the new build into iTunes and then sync to copy over the new build to my device.
But in order to test the migration I want the old db to stay on the device. How should I do this?
The best way of updating ad hoc builds is by using a third party tool called TestFlight. It allows you to monitor crash reports and installations of builds and remotely and you don’t need iTunes. It’s great because each use of your app just updates the app instead of deleting it each time.
How do I release updates to adhoc builds?