executeFetchRequest:error: freezes app

2020-07-26 10:49发布

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条回答
神经病院院长
2楼-- · 2020-07-26 11:15

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!

查看更多
登录 后发表回答