错误_BSMachError:(os / kern)在接收CloudKit记录添加的远程通知后无效功能(20) [英] Error _BSMachError: (os/kern) invalid capability (20) after receiving remote notification on CloudKit record addition

查看:61
本文介绍了错误_BSMachError:(os / kern)在接收CloudKit记录添加的远程通知后无效功能(20)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我收到有关记录添加的远程通知(didReceiveRemoteNotification被调用)时,我收到以下错误消息:

When I receive a remote notification on a record addition (didReceiveRemoteNotification called), I get the following error message:


_BSMachError :( os / kern)无效的能力(20)

_BSMachError: (os/kern) invalid capability (20)

我已经尝试在论坛和谷歌中找到更多相关信息但是我找不到适合我情况的任何有用建议。

I've already tried to find out more about this in forums and via Google but I could not find any helpful advice that applies to my situation.

错误信息是什么意思?我该怎么办?

What does the error message mean? What can I do about it?

推荐答案

我刚刚遇到这个错误。我在 UIAlert Action块中;当块退出时发生错误(BTW,父 UIAlertViewController 是在 dispatch_async块中创建的,所以我猜主要线程。

I just experienced this error. I was in a UIAlert Action block; when the block exited the error occurred (BTW the parent UIAlertViewController was created in a dispatch_async block so was I guess off main thread.

无论如何,我把行动代码包裹在

Anyway, I wrapped the action code itself in

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{

       [self handleActionForElement:thisType];



    });

并且错误消失。您的里程可能会有所不同!

and error went away. Your mileage may vary!

这篇关于错误_BSMachError:(os / kern)在接收CloudKit记录添加的远程通知后无效功能(20)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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