简体   繁体   中英

Cannot password in SSKeychain in Xcode 8

When i'm trying to save an Api Key to SSKeychain by [SSKeychain setPassword:strApiKey forService:[[NSBundle mainBundle] bundleIdentifier] account:@"payeverAuthKey" error:&error];

i get following: Error Domain=com.samsoffes.sskeychain Code=-34018 "errSecDefault" UserInfo={NSLocalizedDescription=errSecDefault}

This issue is not related to SSKeychain, it is an issue with Keychain. Enabling Keychain Sharing in Capabilities tab in Xcode solves this problem.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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