2

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}

Ivan Androsenko
  • 608
  • 6
  • 15
  • 1
    Try enabling shared keychain on your proejct. Does it work? The keychain has been behaving pretty bizarrely for me on iOS 10, and enabling shared keychain is the one workaround that got things to work for me a good percentage of the time. – Andy Ibanez Sep 26 '16 at 21:16
  • @AndyIbanez Yes, also found out that solves the problem, but that's strange as i didn't have it enabled in Xcode 7. added an answer, thanks a lot! – Ivan Androsenko Sep 27 '16 at 00:56
  • 1
    Yeah it's a bug that has been lingering for a **long** time, at least on iOS 10 Beta 1. Hopefully Apple will solve this soon. I myself don't really like this workaround too much. – Andy Ibanez Sep 27 '16 at 00:57

1 Answers1

3

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

Ivan Androsenko
  • 608
  • 6
  • 15