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

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -