I am using lightweight migration for core data versioning in my iPhone application, and i add new model version to core data and set this new version as a current version, then i start adding new attributes to the NEW model version, and i release the app for app store.
When users update the application it crash and never run.
I find the cause of the crash, which is when i add the attributes to new version model, these attributes also added to the previous model version, so when users updated the application, lightweight migration does not work correctly since the version in users application does not match that version in the update application.
My question is: how this issue happens ? why Xcode add the new attributes to previous model and current model instead of adding it to current model only?