trivago / Heimdallr.swift

Easy to use OAuth 2 library for iOS, written in Swift.
Apache License 2.0
639 stars 86 forks source link

FYI Xcode 8/iOS 10 Keychain issues #98

Closed dccarmo closed 2 years ago

dccarmo commented 7 years ago

I was having issues authenticating my requests, and after spending some time debugging I found out that the issue is that the Keychain was giving an error when storing a new value. Apparently this is a known issue with iOS 10, there are some threads discussing this here:

https://forums.developer.apple.com/message/179846

https://forums.developer.apple.com/thread/51071

Workaround usually is to add the Keychain Entitlement, but it doesn't solve in my case because I use Heimdallr in a framework.

Thought I'd create this here if anyone else is running into the same issues (Heimdallr doesn't seem to be reporting this error.)

hffmnn commented 7 years ago

Hi dccarmo,

thanks for reporting this. We discussed this in https://github.com/trivago/Heimdallr.swift/pull/95 and it seems to be a problem on Apple's side. Just to be sure: Heimdallr does not work for you in an application on Simulator AND Device?

Ingibjorg commented 7 years ago

@hffmnn and @dccarmo I'm experiencing the same issue. Heimdallr works on device but not on simulator for me.

hffmnn commented 7 years ago

@dccarmo @Ingibjorg OK, then it is the same bug as @dccarmo linked in his initial comment (we have the same problem on our Applications project Xcode 8 branch). To workaround this issue, you can follow the forum threads.

I guess, currently we can't do anything from our site.

dccarmo commented 7 years ago

I wasn't able to test because I can't Unit Test my framework in a device, but I'm assuming it should work.