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

心已入冬 提交于 2019-12-08 07:33:40

问题


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

Keychain - https://github.com/marketplacer/keychain-swift

keychain access - https://github.com/kishikawakatsumi/KeychainAccess


回答1:


Enable KeyChain sharing in Capabilities which downloads an entitlement files.Clean and run the project now data gets stored in Keychain.




回答2:


If you are using xCode 8.0 please do below :

Project Navigator -> Select Target -> Capabilities 

Enable KeyChain Sharing ON



来源:https://stackoverflow.com/questions/39532818/unable-to-store-data-in-keychain-xcode-8-gm-swift-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!