核心数据警告:“版本哈希信息不可用于所有模型” [英] Core Data warning: "Version hash information not available for all models"

查看:147
本文介绍了核心数据警告:“版本哈希信息不可用于所有模型”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此xdatamodeld文件的警告:版本哈希信息不适用于所有模型。如何摆脱这一点?我也开始在启动时崩溃,当我安装应用程序作为新的...想知道他们是否相关?这是崩溃:

I get this warning for my xdatamodeld file: "Version hash information not available for all models". How do I get rid of this? I've also started to get a crash at startup when I install the app as new ... wonder if they're related? This is the crash:

* 由于未捕获异常NSInvalidArgumentException终止应用程序,原因:'无法使用nil模型创建NSPersistentStoreCoordinator'

* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Cannot create an NSPersistentStoreCoordinator with a nil model'

推荐答案

这是一个iOS5测试版问题,是由模型文件中的获取请求引起的。现在,删除抓取请求会修复它。

This is a iOS5 beta issue, caused by having a fetch request in your model file. For now, removing the fetch request fixes it.

这篇关于核心数据警告:“版本哈希信息不可用于所有模型”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆