[英]Value of type 'GIDSignIn' has no member 'signInSilently'
What is this error, please guide no material found anywhere on google so far.这是什么错误,请指导到目前为止在谷歌上找不到任何材料。 Below is my code which is giving error:下面是我的代码,它给出了错误:
if GIDSignIn.sharedInstance().hasAuthInKeychain() == false {
GIDSignIn.sharedInstance().signIn()
} else {
if let user = GIDSignIn.sharedInstance().currentUser {
service.authorizer = user.authentication.fetcherAuthorizer()
fetchEvents()
} else {
GIDSignIn.sharedInstance().signInSilently()
}
}
Two errors coming:两个错误来了:
Value of type 'GIDSignIn' has no member 'hasAuthInKeychain'
Value of type 'GIDSignIn' has no member 'signInSilently'
Please check the GIDSignIn
version you are using.请检查您使用的GIDSignIn
版本。 From v5.0.0
:从v5.0.0
:
signInSilently
has been replaced with restorePreviousSignIn
. signInSilently
已替换为restorePreviousSignIn
。
hasAuthInKeychain
has been replaced with hasPreviousSignIn
. hasAuthInKeychain
已替换为hasPreviousSignIn
。
Reference: https://developers.google.com/identity/sign-in/ios/release参考: https : //developers.google.com/identity/sign-in/ios/release
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.