1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

FirebaseUIが新しくなってimport FirebaseUIが指定できなくなった

Last updated at Posted at 2021-09-02

6/9にリリースされたバージョン11.0でFirebaseUIが新しくなりSwiftで

import FirebaseUI

が指定できなくなった。

teratailの回答の通りにimport FirebaseAuthUIを書いてみても、「Cannnot find XXX in scope」は無くならず。

解決策

import FirebaseAuthUI
import FirebaseEmailAuthUI
import FirebaseFacebookAuthUI
import FirebaseAnonymousAuthUI
import FirebasePhoneAuthUI
import FirebaseOAuthUI
import FirebaseGoogleAuthUI

を書いたところエラーが解決されました。

ちなみにFUIGoogleAuthとFUIFacebookAuthは( )内に authUI 引数を指定しないとビルド後にエラーになります。

var authUI: FUIAuth { get { return FUIAuth.defaultAuthUI()!}}

let providers: [FUIAuthProvider] = [
    FUIGoogleAuth(authUI: self.authUI),
    FUIFacebookAuth(authUI: self.authUI),
    FUIEmailAuth(),
    FUIOAuth.appleAuthProvider(),
    FUIOAuth.twitterAuthProvider()
]

Swiftのお役立ち情報

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?