Swift crashing with two core data entities -



Swift crashing with two core data entities -

i have app set core info , 1 entity named "subject", when seek add together entity core info called "homework", app crashes , error

2014-10-04 12:41:05.302 homejournal[1050:20160] unresolved error optional(error domain=your_error_domain code=9999 "failed initialize application's saved data" userinfo=0x7fe6bb60cac0 {nslocalizedfailurereason=there error creating or loading application's saved data., nslocalizeddescription=failed initialize application's saved data, nsunderlyingerror=0x7fe6bb524760 "the operation couldn’t completed. (cocoa error 134100.)"}), optional([nslocalizedfailurereason: there error creating or loading application's saved data., nslocalizeddescription: failed initialize application's saved data, nsunderlyingerror: error domain=nscocoaerrordomain code=134100 "the operation couldn’t completed. (cocoa error 134100.)" userinfo=0x7fe6bb524720 {metadata={ nspersistenceframeworkversion = 519; nsstoremodelversionhashes = { subject = <e90676da 933291ac ffe738ee ec80ba71 d2cc14a0 df80b9fe b69b358c 43d4cebc>; }; nsstoremodelversionhashesversion = 3; nsstoremodelversionidentifiers = ( "" ); nsstoretype = sqlite; nsstoreuuid = "cb1fc120-99d2-4db2-9c08-d6679cc6ecb7"; "_nsautovacuumlevel" = 2; }, reason=the model used open store incompatible 1 used create store}]) (lldb)

i'm not sure did wrong, have set info out of entity called "subject" using code

var appdel:appdelegate = (uiapplication.sharedapplication().delegate appdelegate) var context:nsmanagedobjectcontext = appdel.managedobjectcontext! var request = nsfetchrequest(entityname: "subject") request.returnsobjectsasfaults = false;

which works if there 1 entity. in advanced

as suggested in comment, seek deleting app simulator , re-install. if still fails match nsmanagedobject files created info models in actual info models. may case created files , changed models.

core-data swift entity

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -