iOS蓝牙状态保存和恢复的DUPLICATE ISSUE -25299

iOS蓝牙状态保存和恢复的DUPLICATE ISSUE -25299,第1张

概述我在实例化我的CBCentralManager时遇到了问题.从iOS控制台监控时,我收到“重复问题”消息(它没有显示在XCode控制台中). 我已经尝试更新队列名称和恢复密钥ID但没有成功.这是我实例化我的中央管理器的方式: CBCentralManager *central = [[CBCentralManager alloc] initWithDelegate: self queue 我在实例化我的CBCentralManager时遇到了问题.从iOS控制台监控时,我收到“重复问题”消息(它没有显示在XCode控制台中).

我已经尝试更新队列名称和恢复密钥ID但没有成功.这是我实例化我的中央管理器的方式:

CBCentralManager *central = [[CBCentralManager alloc] initWithDelegate: self     queue: dispatch_queue_create("com.mydomain.myapp.scanner",NulL)    options: @{        CBCentralManagerOptionRestoreIDentifIErKey: @"hexa-string-comes-here"    }];

这些是我得到的错误:

CKLs-iPhone-5S securityd[78] :
securityd_xpc_dictionary_handler MyApp[2571] add The operation
@R_301_5717@n’t be completed. (Osstatus error -25299 – duplicate item
O,genp,E99372E2,L,ck,X2W6M5UYJ9.com.mydomain.myapp,acct,svce,v_Data,20151218165347.298588Z,2CAE5650)

CKLs-iPhone-5S MyApp[2571] : SecOsstatusWith
error:[-25299] The operation @R_301_5717@n’t be completed. (Osstatus error
-25299 – Remote error : The operation @R_301_5717@n‚Äôt be completed. (Osstatus error -25299 – duplicate item
O,2CAE5650))

有任何想法吗?

解决方法 如果你想使用 CBCentralManagerOptionRestoreIdentifierKey,你必须

>实施方法

// in Objective-C- (voID)centralManager:(CBCentralManager *)central willRestoreState:(NSDictionary<Nsstring *,ID> *)dict// or in Swiftfunc centralManager(_ central: CBCentralManager,willRestoreState dict: [String : AnyObject])

CBCentralManagerDelegate起,和
>使用背景模式使用Xcode中设置的蓝牙LE配件:

总结

以上是内存溢出为你收集整理的iOS蓝牙状态保存和恢复的DUPLICATE ISSUE -25299全部内容,希望文章能够帮你解决iOS蓝牙状态保存和恢复的DUPLICATE ISSUE -25299所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1104086.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存