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

Cannot get keychain sharing betwen Mac app and iOS app to work #103

Open
John1843 opened this issue Jul 10, 2015 · 1 comment
Open

Cannot get keychain sharing betwen Mac app and iOS app to work #103

John1843 opened this issue Jul 10, 2015 · 1 comment

Comments

@John1843
Copy link

I have enabled keychain sharing in Xcode for both projects (Mac and iOS apps) using the same "Keychain groups" string.

I try to access a keychain item that I write in my iOS app from within my Mac app.

Writing:

UICKeyChainStore *keychain = [UICKeyChainStore keyChainStoreWithService:@"SendSecretToMac"];
                                                                keychain.synchronizable = YES;
                                                                keychain[@"kishikawakatsumi"] = @"01234567-89ab-cdef-0123-456789abcdef";

Reading:

UICKeyChainStore *keychain2 = [UICKeyChainStore keyChainStoreWithService:@"SendSecretToMac"];
keychain2.synchronizable = YES;
NSString *secret = keychain2[@"kishikawakatsumi"];

However, the string "secret" is always nil. What can I do about this?

@mfarhand-sa
Copy link

I have the same issue, between the iOS app and Watch App.
have you found any workaround?

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

2 participants