Reputation: 1614
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
Upvotes: 1
Views: 2880
Reputation: 4451
If you are using xCode 8.0 please do below :
Project Navigator -> Select Target -> Capabilities
Enable KeyChain Sharing ON
Upvotes: 2
Reputation: 1614
Enable KeyChain sharing in Capabilities which downloads an entitlement files.Clean and run the project now data gets stored in Keychain.
Upvotes: 6