- 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文件,重新运行即可
iphone开发初学-错误汇总
最新推荐文章于 2025-12-04 14:59:40 发布
本文介绍了一种常见问题,即在更新Datamodel后因遗留的SQLite文件导致的应用无法正常启动的情况,并提供了解决方案,即删除对应目录下的SQLite文件。
1843

被折叠的 条评论
为什么被折叠?



