保存到iCloud时收到信号SIGSTOP [英] Received signal SIGSTOP on saving to iCloud

查看:92
本文介绍了保存到iCloud时收到信号SIGSTOP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将单个基准保存到iCloud时,它工作正常,并且当我需要将大量数据保存到iCloud时,我将相同的代码步骤保存在for循环中.

When I save a single datum to the iCloud, it works fine and when I need to save number of data to iCloud, I put the same code steps to save inside the for loop.

当我尝试将大量数据保存到iCloud时,会收到以下信号,并且该应用无限期挂起.信号接收区域如下图所示.

When I tried saving number of data to iCloud, the following signal is received and the app is hanging infinitely. The signal received area is in the below image.

崩溃区域指向

如何调试此崩溃?有人可以帮助我尽快进行移植吗

How I can debug this crash? Can someone help me with explantion ASAP

推荐答案

该方法的文档说:重要:请勿从应用程序的主线程调用此方法." 警告继续说这样做可能会导致死锁.听起来这就是您的病情.

The documentation for that method says, "Important: Do not call this method from your app’s main thread." The warning goes on to say that doing so may cause a deadlock. It sounds as if that's the condition you have.

这篇关于保存到iCloud时收到信号SIGSTOP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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