在 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/