Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Diary App Using Core Data Deleting and Updating Data Updating Data

Error: "The model used to open the store is incompatible with the one used to create the store"

After I renamed the image property from just "image" to "imageData" in the Diary App, I received the following error:

"The model used to open the store is incompatible with the one used to create the store."

The imageData code was revised in all locations including the diary attributes root location.

Any ideas why this is occurring? Or potential fixes?

2 Answers

You might want to check your core data model to see if there are any inconsistencies there in relation to your newly changed property.

Olla Ashour
Olla Ashour
2,491 Points

This is due to adding or changing types of variables in the object models. Generate new models and clean your project and the issue should be fixed.