Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FXKeychain failed to retrieve data for key 'token', error: -34018 #31

Open
kidsid49 opened this issue Jun 3, 2015 · 13 comments
Open

FXKeychain failed to retrieve data for key 'token', error: -34018 #31

kidsid49 opened this issue Jun 3, 2015 · 13 comments

Comments

@kidsid49
Copy link

kidsid49 commented Jun 3, 2015

This error comes sometimes while reading data from shared keychain by multiple apps. Can somebody explain what's causing this?

@kidsid49 kidsid49 changed the title FXKeychain failed to retrieve data for key 'acess_token', error: -34018 FXKeychain failed to retrieve data for key 'token', error: -34018 Jun 3, 2015
@altyus
Copy link

altyus commented Jun 29, 2015

I'm having the same issue

@joekh
Copy link

joekh commented Jul 5, 2015

me too FXKeychain failed to retrieve data for key

@14lox
Copy link
Contributor

14lox commented Jul 15, 2015

+1

@14lox
Copy link
Contributor

14lox commented Jul 15, 2015

Apple are aware of it... https://forums.developer.apple.com/thread/4743#14441

UPDATE: We have finally been able to reproduce the -34018 error on iOS 8.3. This is the first step in identifying the root cause and then coming up with a fix.

As usual, we can't commit to a release timeframe, but this has affected many developers and we really want to get this resolved.

In the meantime, for a workaround, try adding a small delay in application:didFinishLaunchingWithOptions and applicationDidBecomeActive: before accessing the keychain. However, we know this hasn't worked in at least one case. Now that we have a reproducible case, I can experiment with the delay and see if I can come up with a recommended value.```

@Air-Craft
Copy link

Is it only when accessing the keychain right at launch? I'm getting this well after the app launch...

@emonster
Copy link

emonster commented Nov 3, 2015

Having the same issue. Is there a solution to this problem? Thanks

@bmatthys
Copy link

Having the same issue and the workaround that Apple provided with the delay is not working for me either. Hope there will be a fix in a new iOS version soon though.

@maxoly
Copy link

maxoly commented Nov 11, 2015

Having the same issue only when running in debug mode with Xcode with the device connected to the debugger.

@sp3esu
Copy link

sp3esu commented Feb 18, 2016

Having the same issue only when running in debug mode with Xcode/AppCode with the device connected to the debugger...

@piogab
Copy link

piogab commented Mar 7, 2016

Same issue here in iOS 9.2.1. When device is not connected to the debugger it works ok for me.

@bimusiek
Copy link

Same issue with iOS 10 and iPhone 7 simulator...

@jboulter11
Copy link

@bimusiek and all others getting this issue:

If you're getting this issue now, it's likely because iOS 10 now requires a new entitlement for keychain usage. Here's the fix:
https://forums.developer.apple.com/thread/60617

Go to your project target and under capabilities add Keychain Sharing to your app. It immediately resolved my issues.

@bimusiek
Copy link

bimusiek commented Nov 7, 2016

@jboulter11 Yes, you are right. I forgot to reply here after I found the solution.

Confirmed, you have to enable Keychain Sharing, however for me this is not really the solution for people that do not want to share Keychain :) However, the fault is at Apple side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests