
我已经尝试更新队列名称和恢复密钥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所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)