Updating CoreData xcdatamodel file troubles - attribute type change

Posted by San on Stack Overflow See other posts from Stack Overflow or by San
Published on 2010-04-17T20:44:17Z Indexed on 2010/04/18 5:03 UTC
Read the original article Hit count: 589

Filed under:
|

I noticed several questions related to this topic go unanswered. Is this such a gray area that nobody really understands it?

Here is my problem: I am a midway in the development of my app and the app has never been used ouside of my iphone simulator.One of the attributes in my core data structure requires a type change.Since my app has never been used outside of my iPhone Simulator, I first deleted the sqlite file. Doubling the effort of this step, I also went into iPhone Simulator menu and selected "Reset Content and Settings...".

Than, I edited the xcdatamodel file and changed the type of my attribute. I saved the file and exited. Without any other changes, I compiled. I expected it to fail because of my type change. It did not! After this, I assigned a value with new type to my attribute and it fails to compile?!

Is there something else that I need to do for the change to take an effect? I would really, really appreciate an answer to my question.

Thank you!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about core-data