In my app I am using core data and uses version 1 to 5. In app store e.g. previous app have version 1 and the new update have version 5. So version 2,3,4 are skipped in debug and ad hoc releases.
Now I found that the app store crashes due to some kind of core data problem, and I think its for the versioning issues. If the old app is removed and new app installed, it resolve the problem.
Can you suggest me how can I resolve this issue? Keeping existing app installed in the user phone and release a new update so that people who have earlier version need not to remove the app for updating.
I look for migration scheme. I could not find any intuitive documentation how can you migrate or fix when you screw up your own xcdatamodel file with older version.
Since in my case, there was no important data stored and all data were dynamic related to the current run of the app, in the next release I delete my old sqlite files in the documents directory and make a clean up. I use another sqlite file to store new data from now on…