GIDSignIn 钥匙串错误 iOS 10 Xcode 8
GIDSignIn keychain error iOS 10 Xcode 8
在 iOS 10 和 xcode 8 中,当我尝试登录 google 服务时,我得到
"keychain error"
func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!){
if error != nil {
print("\(error!.localizedDescription)")
}
}
SO 上提供和接受的解决方案是 运行 直接从模拟器而不是通过 Xcode 应用程序。这个我已经尝试过但没有成功因此在这里发布这个问题希望有人有更新的解决方案或经验。
您要解决的问题与钥匙串访问有关。要解决问题,您只需转到 Target->Capabilities 并启用钥匙串共享。描述了与 Facebook SDK 类似的情况 。
如果您正在使用 Xamarin(阅读此 了解更多信息,感谢@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.
在 iOS 10 和 xcode 8 中,当我尝试登录 google 服务时,我得到 "keychain error"
func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!){
if error != nil {
print("\(error!.localizedDescription)")
}
}
SO 上提供和接受的解决方案是 运行 直接从模拟器而不是通过 Xcode 应用程序。这个我已经尝试过但没有成功因此在这里发布这个问题希望有人有更新的解决方案或经验。
您要解决的问题与钥匙串访问有关。要解决问题,您只需转到 Target->Capabilities 并启用钥匙串共享。描述了与 Facebook SDK 类似的情况
如果您正在使用 Xamarin(阅读此
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.