auth0/SimpleKeychain

Cannot set string in simulator.

burakkilic opened this issue · 3 comments

Hello;

I am trying this code in simulator. But it doesn't work. token is nil.

 [[A0SimpleKeychain keychain] setString:value forKey:key];
 NSLog(@"token is %@", [[A0SimpleKeychain keychain] stringForKey:key]);

If I run this in a device, it works.

What is wrong?

I assume this is Xcode 8 and iOS 10 simulator? Because I am having the same problem.

Yes its true. I allowed keychain in Entitlements and now it is working.

On Friday, 23 September 2016, Jaison Green notifications@github.com wrote:

I assume this is Xcode 8 and iOS 10 simulator? Because I am having the
same problem.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#38 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHh9jSv5zY2DcM68GwDf0J-R2gyaqtNks5qsvvBgaJpZM4KDvRj
.

Adil Burak Kılıç

@burakkilic Thanks. Had the same problem. For others: select your main project and go to Capabilities and enable Keychain sharing project