xcode - Lightweight migration crash -


i working on app , 1.0 version added new attributes entity in core data. added new model version, set storeurl model 6.sqlite (before model 5.sqlite) after edit persistentstorecoordinator. when run app crash , log show me error. when delete app , install again works fine. can problem app working hasperformedfirstlaunch false initial core data, dont wanna lose data every new model version.

terminating app due uncaught exception 'nsrangeexception', reason: '* -[__nsarrayi objectatindex:]: index 0 beyond bounds empty array'

nsdictionary *migrateoptions = [nsdictionary dictionarywithobjectsandkeys:                                 [nsnumber numberwithbool:yes], nsmigratepersistentstoresautomaticallyoption,                                 [nsnumber numberwithbool:yes], nsinfermappingmodelautomaticallyoption, nil]; 


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -