We have an iOS app that has been released. IDE - XCode6. I want to add key sharing to access the session id that exists in the application from the iOS 8 sharing extension.
The problem is that when key sharing is used, a session identifier already exists.
Access to it is possible when disabling key exchange.
This dictionary is passed to SecItemCopyMatching, which always returns -25300 (not found) when key exchange is enabled, regardless of what βKeychain Groupsβ is:
[0] (null) @"svce" : @"SESSION_ID_KEY" [1] (null) @"r_Data" : @"1" [2] (null) @"m_Limit" : @"m_LimitOne" [3] (null) @"class" : @"genp" [4] (null) @"acct" : @"SESSION_ID_KEY" [5] (null) @"pdmn" : @"ck"
Any idea why key access might not work? I tried installing kSecAttrAccessGroup with the prefix and package name, and it still did not work on the simulator.
source share