google/gtm-oauth2

canAuthorize returns false in simulator but true on real device (iOS 10)

Closed this issue · 3 comments

Hello,

I'm currently developing an app that uses Google authentication that stores the token in the keychain.
Today I updated to Xcode 8/Swift 3 etc. and noticed a strange issue that only occurs on the simulator. After successfully logging in, I can make requests to the backend and everything works fine, but when I relaunch the App, it asks me to log in again. Seems like it can't access the keychain. On my physical device, this doesn't happen.

Thank you in advance!

There's a bug in the iOS 10 simulator keychain support where things like to error out (that used to work). So we're looking at hacking around it by just using NSUserDefaults for that one configuration.

Thank you for the quick response. I was going mad about this issue, trying to figure out what's wrong with my code.

Fyi - #77 in flight. I might not do a CocoaPods release right away just to confirm this doesn't cause other problems.