iOS10上的KeychainItemWrapper崩溃 [英] KeychainItemWrapper crash on iOS10

查看:151
本文介绍了iOS10上的KeychainItemWrapper崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将项目添加到钥匙串时,我在iOS10上发现此崩溃 ***-[KeychainItemWrapper writeToKeychain]中的断言失败

When I try to add the item to Keychain i found this crash on iOS10 *** Assertion failure in -[KeychainItemWrapper writeToKeychain]

在iOS 9.3上,我毫无问题地将密钥写入了钥匙串 谢谢

On iOS 9.3 I write the key in the keychain without problem Thanks

推荐答案

它看起来像个错误;已提交错误报告,但有解决方法.只需启用钥匙串共享"(在您的应用程序-> Xcode中的功能"选项卡下).有关完整背景,请参见 https://forums.developer.apple.com/thread/51071 .

It looks like a bug; a bug report has been filed, but there's a workaround. Just enable "Keychain Sharing" (under your app -> Capabilities tab in Xcode). See https://forums.developer.apple.com/thread/51071 for full background.

这篇关于iOS10上的KeychainItemWrapper崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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