这个错误是什么,到目前为止在google上找不到任何材料。下面是我的代码,它给出了错误:
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()
}
}出现两个错误:
Value of type 'GIDSignIn' has no member 'hasAuthInKeychain'
Value of type 'GIDSignIn' has no member 'signInSilently'发布于 2020-02-25 05:00:31
请检查您正在使用的GIDSignIn版本。来自v5.0.0
signInSilently已被restorePreviousSignIn取代。
hasAuthInKeychain已被hasPreviousSignIn取代。
参考:https://developers.google.com/identity/sign-in/ios/release
https://stackoverflow.com/questions/60380787
复制相似问题