- The model used to open the store is incompatible with the one used to create the store
如果在修改data model之前运行了app,app会以老的data model在模拟器上留下sqlite文件,这样在修改了data model后就造成要读的schema和文件的schema不一致,导致出现以上信息。
破解办法:到mac的 /Users/<username>/Library/Application Support/iPhone Simulator/User/Applications 目录,删除相应的sqlite文件,重新运行即可