0

What I did was:

  1. create new project via master detail template
  2. select 'use core data'
  3. build -> run using ios sim

I got the following error code:

the model used to open the store is incompatible with the one used to create the store

I googled around and read a lot about data migration and what not. I even following the directions and tried to migrate. The model used to open the store is incompatible with the one used to create the store, apple store release version

But then it gave me another error message:

can't find model for source code

But since the app is not edited whatsoever, and there is only one version, why is there an issue with data migrating anyways? Shouldn't it just run with no error and just do nothing meaningful?

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
user2927724
  • 347
  • 1
  • 3
  • 8
  • Yes, it should. Which app template did you use? – matt Apr 18 '14 at 03:01
  • Sry , forgot to mention, I used master detail – user2927724 Apr 18 '14 at 03:33
  • Thanks. Okay, well, I just created a new Master-Detail iPhone app with Core Data checked and it works fine. – matt Apr 18 '14 at 03:38
  • I think you need to drop back ten yards and punt, as suggested in the answer you've already gotten. See my instructions here: http://stackoverflow.com/a/6247073/341994 – matt Apr 18 '14 at 03:52

1 Answers1

0

After the error is thrown, push the stop button on Xcode.

Then, go to the simulator (it should now be on the home screen) and delete the app. You delete apps from the simulator the same way you do on an actual iPhone (hold down on the icon until it shakes and the 'x' appears in the corner).

Then, run the app again.

You probably, at some point, made another project with the same bundle-id. That project probably had a data-model which is different than the blank (or whatever the default data model is) in the template app, which causes your app to crash somewhere in your AppDelegate.m when it tries to load up the store.

Gazzini
  • 728
  • 8
  • 19