jrendel / SwiftKeychainWrapper

A simple wrapper for the iOS Keychain to allow you to use it in a similar fashion to User Defaults. Written in Swift.
MIT License
1.59k stars 339 forks source link

Access Groups clarification #164

Open svenyonson opened 3 years ago

svenyonson commented 3 years ago

Thanks for the code, it works well.

But the docs aren't clear around access groups for a custom keychain wrapper instance. One might assume (I did) that the access group string is an arbitrary string:

let uniqueAccessGroup = "sharedAccessGroupName"

when in fact it MUST be an "App Group" as specified in Build Settings -> Signing and Capabilities

Or else I am missing something, because when I made that change it started working as expected.

julianrubisch commented 3 years ago

Hit this as well, worked only when I created an App Group and a Keychain Sharing Group of the same name (is this expected?)

srayhunter commented 3 years ago

Ran into this issue as well. Once I set the value to the app group and keychain sharing group it worked for me across various apps.

samBay46 commented 3 years ago

Ahdjdo sjsishbhsh

On Tue, May 25, 2021, 8:19 AM Ray Hunter @.***> wrote:

Ran into this issue as well. Once I set the value to the app group and keychain sharing group it worked for me across various apps.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jrendel/SwiftKeychainWrapper/issues/164#issuecomment-847959926, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASWFECF3RSIUBAE2R6D354DTPO5XDANCNFSM4WWDRVSA .

chaseklingelzen commented 2 years ago

After setting both the app group and the keychain sharing group, I am still having issues. Has anyone seen this error by chance?

container_system_group_path_for_identifier: error = ((container_error_t)98) NOT_CODESIGNED