无法在钥匙串Xcode 8 GM(Swift 3)中存储数据 [英] Unable to store data in Keychain Xcode 8 GM (Swift 3)
本文介绍了无法在钥匙串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.
使用过的钥匙串开源:
KeyClip- https://github.com/s-aska/KeyClip
钥匙串- https://github.com/marketplacer/keychain-swift
钥匙串访问- https://github.com/kishikawakatsumi/KeychainAccess
推荐答案
在功能中启用密钥链共享,该功能会下载权利文件.现在,清理并运行项目即可获取数据存储在钥匙串中.
Enable KeyChain sharing in Capabilities which downloads an entitlement files.Clean and run the project now data gets stored in Keychain.
这篇关于无法在钥匙串Xcode 8 GM(Swift 3)中存储数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文