需要帮助快速 - CoreData错误 [英] Need help fast -- CoreData error

查看:146
本文介绍了需要帮助快速 - CoreData错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要帮助绝对超前的演示在几个小时...应用程序在我的测试设备上工作昨晚。添加了一些数据(我总是这样做)今天上午,现在我得到这个错误在保存操作:

 严重的应用程序错误。核心数据更改处理期间捕获异常:
*** - [NSCFDictionary setObject:forKey:]:尝试使用userInfo(null)插入nil值
(键:_ContentChange_OldIndexPathKey)

***由于未捕获异常而终止应用程序'NSInvalidArgumentException',
reason:'*** - [NSCFDictionary setObject:forKey:]:尝试插入nil值
(key:_ContentChange_OldIndexPathKey)'$有趣的是,如果我将我的sqlite文件下载到我的Mac,并将其馈送到模拟器,一切都是一样的工作很好。

解决方案



这是一个老帖子,但我会给我的评论反正)。



我遇到过类似的问题,删除NSFethedReultController的缓存解决了问题。 >

  [NSFetchedResultsController deleteCacheWithName:< cacheName>]; 


need help desperately ahead of a demo in a few hours... App was working on my test device fine last night. Added some data (as I always do) this morning and now I get this error during a save operation:

        Serious application error.  Exception was caught during Core Data change processing:
    *** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value
(key: _ContentChange_OldIndexPathKey) with userInfo (null)

        *** Terminating app due to uncaught exception 'NSInvalidArgumentException',
    reason: '*** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value
(key: _ContentChange_OldIndexPathKey)'

The funny thing is that if I download my sqlite file to my Mac and feed it into the simulator, everything works just fine. The crash only occurs on the test device.

Any ideas?

解决方案

This is an old post but I will give my comment anyway :)

I have experienced similar problem and deleting the cache for the NSFethedReultController solved the problem.

[NSFetchedResultsController deleteCacheWithName:<cacheName>];

这篇关于需要帮助快速 - CoreData错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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