![](/img/trans.png)
[英]Value of type 'GIDSignIn' has no member 'presentingViewController'
[英]Value of type 'GIDSignIn' has no member 'signInSilently'
這是什么錯誤,請指導到目前為止在谷歌上找不到任何材料。 下面是我的代碼,它給出了錯誤:
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'
請檢查您使用的GIDSignIn
版本。 從v5.0.0
:
signInSilently
已替換為restorePreviousSignIn
。
hasAuthInKeychain
已替換為hasPreviousSignIn
。
參考: https : //developers.google.com/identity/sign-in/ios/release
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.