本文介绍了executeFetchRequest:错误:冻结应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道它是什么,但它发生时,当提取元素,这就是我所以,因为应用程序只是冻结,我暂停调试和调试器停止在 return [__context executeFetchRequest :

I don't know what it is but it happens when is fetching elements, well that's what I asume because the app just freezes, I pause the debugging and the debugger stops at a return [__context executeFetchRequest:request error:&error]; Any help about this will be very appreciated.

推荐答案

检查此,基本上您需要锁定您的persistentStoreCordinator,因为只读调用aren' t线程安全。 Apple文档在此提供。干杯我的朋友!

Check this post basically you'll need to lock your persistentStoreCordinator because read only calls aren't thread safe. Apple documentation mention this here. Cheers my friend!

这篇关于executeFetchRequest:错误:冻结应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-23 18:22