executeFetchRequest:error:获取请求必须具有实体 [英] executeFetchRequest:error: A fetch request must have an entity
问题描述
我有一个工作正常的项目。它检查了核心数据,并且已经设置了数据模型。我今天晚上才开始添加几个实体和属性。当我尝试立即运行我的应用程序,它甚至不会加载。它只是崩溃对我。
I had a project that was working fine. It had "Core Data" checked, and had the data model all set up. I only started adding a couple entities and properties tonight. When I try to run my app now, it won't even load. It just crashes on me.
这里是错误:
'NSInvalidArgumentException',reason:'executeFetchRequest:error :抓取请求必须有一个实体。'
我真的害怕,因为我没有这个备份,如果我不能得到它的工作我不知道我会做什么。 :)
I'm really scared because I don't have a backup of this and if I can't get it working I don't know what I'll do. :)
提前感谢!
编辑:
我厌倦了我的数据,所以我只是复制一个新的空白xcdatamodel到我的项目,我要开始新鲜。谢谢您的帮助!
推荐答案
似乎我的数据已损坏,所以我删除了我的数据模型和iPhone中的数据库模拟器,并开始新鲜。
It seemed as if my data got corrupted, so I deleted my data model and the database in the iPhone simulator, and started fresh.
这篇关于executeFetchRequest:error:获取请求必须具有实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!