Core Data Causing App (ViewController) To Freeze Up?

Reason = "The model used to open the store is incompatible with the one used to create the store You must have changed the model at some point. Remove the app from the device/simulator and then reload it. All should be fine after that.

Reason = "The model used to open the store is incompatible with the one used to create the store"; You must have changed the model at some point. Remove the app from the device/simulator and then reload it. All should be fine after that.

This fixes the problem of the view crashing, thanks. But the data is not saving. When I exit the app (double click home and press minus) then reopen the app, the data is not loaded in my table view.

Any ideas? – Faisal Mar 30 at 3:52 When you remove the app from the device it erases any previous data that was saved before. This was necessary because the file was not compatible with the model in its current state.

You will have to put the data in again. – sosborn Mar 30 at 4:07 Yeah I understand this. I mean now that the app isn't crashing, it is not saving data now.

I have entered data and closed the app and the data is not there when I reopen. I think there is some error in my code related to either the saving or fetching code. Could you please take a look?

– Faisal Mar 30 at 4:08 You should check the value of your errors when you try to save. That will tell you if anything is going wrong. – sosborn Mar 30 at 5:59 Thanks @sosborn.Do you have any more info on exactly how to do that?

– Faisal Mar 30 at 6:11.

Often, a file URL is pointing into the application's resources directory instead of a writeable directory. Lightweight migration will only work for a limited set of schema changes; consult "Core Data Model Versioning and Data Migration Programming Guide" for details. Returns the URL to the application's Documents directory.

// Handle the error. // Handle the error.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions