I'm working on an iPhone app that uses Core Data. Most times, I just test in the simulator, but occasionally pump the app down to the iPad to make sure.
I've recently changed my Core Data model, and now when I send the app to the iPad, I get a SIGABRT exception telling me:
Can't merge models with two different entities named 'foo'
OK, that I understand. Old version of the database exists on the device. So, I (try to) kill the old version by press/holding the application's icon until it starts wiggling, and then tap its "X". The iPad asks me if I want to delete the application and all of its data. I say yes.
I rebuild the app, targetting the iPad, and get the same error.
Is there a trick to getting the old database to really go away?