iosobjective-cxcodekeychainosstatus

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}


Solution

  • 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