executeFetchRequest:error: freezes app

此生再无相见时 提交于 2019-12-21 21:42:11

问题


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.


回答1:


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!



来源:https://stackoverflow.com/questions/8002906/executefetchrequesterror-freezes-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!