调试 COCOA Core 数据绑定
在我的文档核心数据应用程序中,我在控制台中收到崩溃报告:
Cocoa Bindings: Cannot create NSSet from object <_NSControllerObjectProxy: 0x26acb0>类 _NSControllerObjectProxy
我有 -NSBindingDebugLogLevel 1 启动参数启用,我只得到这个。有没有办法获得更多信息哪个类或控制器正在引发它?或者从指针地址获取类名?
堆:
#0 0x9141f4e6 in objc_exception_throw
#1 0x951288e8 in +[NSException raise:format:arguments:]
#2 0x9512885a in +[NSException raise:format:]
#3 0x956837dc in -[_NSManagedProxy _entity]
#4 0x9568392a in -[_NSManagedProxy fetchRequestWithSortDescriptors:limit:]
#5 0x956835bb in -[NSArrayController(NSManagedController) defaultFetchRequest]
#6 0x95683486 in -[NSObjectController(NSManagedController) _executeFetch:didCommitSuccessfully:actionSender:]
In my document Core Data application I receive crash with report in console:
Cocoa Bindings: Cannot create NSSet from object <_NSControllerObjectProxy: 0x26acb0> of class _NSControllerObjectProxy
I have -NSBindingDebugLogLevel 1 startup vargument enebled and I get only this. Is there any way to get more information which class or controller is raising it? Or get class name from pointer address?
Stack:
#0 0x9141f4e6 in objc_exception_throw
#1 0x951288e8 in +[NSException raise:format:arguments:]
#2 0x9512885a in +[NSException raise:format:]
#3 0x956837dc in -[_NSManagedProxy _entity]
#4 0x9568392a in -[_NSManagedProxy fetchRequestWithSortDescriptors:limit:]
#5 0x956835bb in -[NSArrayController(NSManagedController) defaultFetchRequest]
#6 0x95683486 in -[NSObjectController(NSManagedController) _executeFetch:didCommitSuccessfully:actionSender:]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您最近是否更改了模型,但正在加载旧版本的数据文件?如果有,请删除坏数据文件,或启用持久存储迁移。
Did you recently change your model but are loading a old version of your data file? Delete the bad data file if so, or enable persistent store migration.
对于任何浪费时间调试问题的人 - 确保数据模型包含在目标中。
就我而言,在进行一些版本控制更改后,文件被从目标中排除。
这么琐碎的事情。
For anybody wasting time debugging su a issues - make sure datamodel is included in the target.
In my case after making some versioning changes file got excluded from target.
Such a trivial.