xcode - GIDSignIn 钥匙串(keychain)错误 iOS 10 Xcode 8

标签 xcode keychain ios10 gidsignin xcode8-beta4

在 iOS 10 和 xcode 8 中,当我尝试登录谷歌服务时,我得到了
“钥匙串(keychain)错误”

 func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!){
        if error != nil {
            print("\(error!.localizedDescription)")
}
}

SO上提供和接受的解决方案是直接从模拟器运行应用程序,而不是通过Xcode。我已经尝试过但没有成功,因此在这里发布这个问题,希望有人有更新的解决方案或经验。

最佳答案

您要解决的问题与钥匙串(keychain)访问有关。要解决问题,您只需转到目标-> 功能并启用钥匙串(keychain)共享。与 Facebook SDK 类似的案例描述 here .

如果您使用 Xamarin (阅读 link 了解更多信息,感谢@dynamokaj):

Just make sure you enable the keychain access in Entitlements and select the entitlements for Simulator (Debug) builds too. By default this is not set.

关于xcode - GIDSignIn 钥匙串(keychain)错误 iOS 10 Xcode 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38812761/

相关文章:

iphone - 在 Xcode 中的项目之间共享代码

ios - 如何从 iOS Swift 中的框架中关闭相机 Controller ?

ios - UITabbar 在 iOS 10 中拉伸(stretch)但在 11+ 中不拉伸(stretch)

xcode - iOS 模拟器 : How can I see the background apps?

ios - 什么时候获取 apple-app-site-association 文件?

没有 cocoapods 的 iOS firebase Mach-O 链接器错误

ios - 需要在 Xcode 中创建一个 Objective-C 方法并从 JavaScript Cordova App 中调用它

ios - 如何获取我的私钥以在新 mac 中导出 APNS 证书

ios - 在 iOS 上从 SecKeyRef 生成 PKCS12 key

xcode - Codesign 想要访问钥匙串(keychain)中的 key "access",我输入了登录密码,但一直询问我