0

I am trying to share keychain data between my app and my custom IOS keyboard extension.

Whenever I try to access the keychain from the keyboard extension I get the error:

OSStatus error:[-25291] No keychain is available. You may need to restart your computer.

This is odd because I can access the keychain without any problems from the parent app. I was wondering if a IOS keyboard extension can even access the keychain of its parent app? or if it can even access the IOS keychain at all?

I found this post but I am not sure if that is the answer since it does not once talk about keychain sharing and using entitlements etc....

Community
  • 1
  • 1
Foobar
  • 7,458
  • 16
  • 81
  • 161
  • [check here](https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/AddingCapabilities/AddingCapabilities.html#//apple_ref/doc/uid/TP40012582-CH26-SW15) – Özgür Ersil Jul 24 '16 at 19:42
  • What is the solution ? I am facing same issue on device. – Sharad Chauhan Feb 08 '20 at 11:20

1 Answers1

0

The IOS Keyboard can access a keychain if it enables keychain sharing with the parent app and also has RequestsOpenAccess set to YES

Foobar
  • 7,458
  • 16
  • 81
  • 161