1

I'm currently running OS X 10.7.4 and using XCode 4.3.2. I'm coming back to XCode from not really using it in production since version 2.x. That said, I have a test Core Data application (MacOS not iPhone) I'm getting familiar with. There is 0 code -- all Interface Builder at the moment. I changed the data model a couple days ago, and have been getting the following error since:

The managed object model version used to open the persistent store is incompatible with the one that was used to create the persistent store

I have encountered several related threads, including, but not limited to:

Replace core data model without migration

Incompatible Object Model Version

Wipe all data stored with CoreData when the model has changed

However, none have resolved my problem. Again, I am using no code. Also, despite other pages and forum posts I have encountered:

http://www.matthew-long.com/2007/11/02/the-managed-object-model-version-used-to-open-the-persistent-store-is-incompatible-with-the-one-that-was-used-to-create-the-persistent-store/

…there is no xml file in ~/Library/Application Support/AppName for me to delete. There's actually no folder anywhere in Library with my "AppName". I'm sure the answer is fairly trivial, but I have been beating my head against a wall trying to figure it out.

I'm currently reading the Apple documentation on versioning, etc (http://developer.apple.com/library/mac/#documentation/cocoa/conceptual/CoreDataVersioning/Articles/Introduction.html), but I'm hoping someone will post an answer before my eyes glaze over.

Thanks in advance!

Community
  • 1
  • 1
humble_coder
  • 2,777
  • 7
  • 34
  • 46
  • Can you find the code for creating your persistent store? – Adam Jun 03 '12 at 08:00
  • try also to do a clean for your project. hope it helps. – Lorenzo B Jun 03 '12 at 14:17
  • No, as I mentioned, there is no code to "find". Also, I have cleaned it, multiple times, and still nothing. When I Google for the error it seems to be sufficiently common, but no solution yet seems to fix it. *shrug* – humble_coder Jun 04 '12 at 03:12
  • You should look for `- (NSPersistentStoreCoordinator *)persistentStoreCoordinator` method in `YourAppDelegate.m` file. Check again. – Adam Jun 04 '12 at 15:57
  • Yes, I actually did that. I misunderstood your initial post. I simply set the *options* and passed them to the PSC before returning it. Feel free to actually answer the question and I will give you the points (as opposed to me answering it myself). Thanks again! – humble_coder Jun 04 '12 at 16:00

0 Answers0