Shailesh Chandavar
Shailesh Chandavar

Reputation: 1614

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

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

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

Upvotes: 1

Views: 2880

Answers (2)

Dheeraj D
Dheeraj D

Reputation: 4451

If you are using xCode 8.0 please do below :

Project Navigator -> Select Target -> Capabilities 

Enable KeyChain Sharing ON

enter image description here

Upvotes: 2

Shailesh Chandavar
Shailesh Chandavar

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

Related Questions