Cannot password in SSKeychain in Xcode 8

764 Views Asked by At

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}

1

There are 1 best solutions below

0
Ivan Androsenko On BEST ANSWER

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

enter image description here