简体   繁体   English

无法在钥匙串Xcode 8 GM(Swift 3)中存储数据

[英]Unable to store data in Keychain Xcode 8 GM (Swift 3)

In my project I need to save some data in Keychain, hence I'm using some open-source, but the data is not getting stored in keychain. 在我的项目中,我需要在“钥匙串”中保存一些数据,因此我使用了一些开放源代码,但是数据并未存储在“钥匙串”中。 I have tried many open source, in every open source the attempt to store data in keychain failed. 我尝试了许多开放源代码,在每个开放源代码中,尝试将数据存储在钥匙串中都失败了。

Used Keychain open sources: 二手钥匙串开源:

KeyClip - https://github.com/s-aska/KeyClip 密钥夹-https: //github.com/s-aska/KeyClip

Keychain - https://github.com/marketplacer/keychain-swift 钥匙串-https: //github.com/marketplacer/keychain-swift

keychain access - https://github.com/kishikawakatsumi/KeychainAccess 钥匙串访问-https: //github.com/kishikawakatsumi/KeychainAccess

Capabilities中 启用KeyChain共享以下载权利文件。现在,清洁并运行项目,数据将存储在Keychain中。

If you are using xCode 8.0 please do below : 如果您使用的是xCode 8.0,请执行以下操作:

Project Navigator -> Select Target -> Capabilities 

Enable KeyChain Sharing ON

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM