質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Firebase

Firebaseは、Googleが提供するBasSサービスの一つ。リアルタイム通知可能、並びにアクセス制御ができるオブジェクトデータベース機能を備えます。さらに認証機能、アプリケーションのログ解析機能などの利用も可能です。

Firebase Authentication

Firebase Authenticationは、Firebaseを利用したユーザーの認証機能です。バックエンドサービス、SDK、アプリでのユーザー認証に使用できるUIライブラリが用意されています。

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

Q&A

解決済

1回答

1377閲覧

FirebaseUIでcannot find FUITwitterAuth() in scopeとなってしまう

apeirogon0813

総合スコア117

Firebase

Firebaseは、Googleが提供するBasSサービスの一つ。リアルタイム通知可能、並びにアクセス制御ができるオブジェクトデータベース機能を備えます。さらに認証機能、アプリケーションのログ解析機能などの利用も可能です。

Firebase Authentication

Firebase Authenticationは、Firebaseを利用したユーザーの認証機能です。バックエンドサービス、SDK、アプリでのユーザー認証に使用できるUIライブラリが用意されています。

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

0グッド

0クリップ

投稿2020/12/26 06:01

公式サイトを参考にFirebaseUIを使用して,ログイン認証を実装したいのですが,cannot find FUITwitterAuth() in scopeとなり,エラーになってしまいます.必要なライブラリはpod installで実行していますが,原因がわからないのでご教示願います.

Podfile

1# Uncomment the next line to define a global platform for your project 2# platform :ios, '9.0' 3 4target 'xxx' do 5 # Comment the next line if you don't want to use dynamic frameworks 6 use_frameworks! 7 8 # Pods for LoveJudgement 9 10 11 pod 'Firebase' 12 pod 'Firebase/Auth' 13 pod 'Firebase/Core' 14 pod 'Firebase/Storage' 15 pod 'Firebase/Firestore' 16 pod 'SDWebImage', '~> 5.0' 17 pod "ViewAnimator" 18 pod 'ActiveLabel' 19 pod 'Charts' 20 pod 'NendSDK_iOS' 21 pod 'NVActivityIndicatorView' 22 pod 'FirebaseUI' 23 24end 25

AppDelegate.swift

1@UIApplicationMain 2class AppDelegate: UIResponder, UIApplicationDelegate { 3 4 5 6 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 7 // Override point for customization after application launch. 8 9 FirebaseApp.configure() 10 return true 11 } 12 13 14//Google ログインまたは Facebook ログインを有効にしている場合は、Google ログインと Facebook ログインのフローの結果を処理するハンドラを実装します。 15 func application(_ app: UIApplication, open url: URL, 16 options: [UIApplication.OpenURLOptionsKey : Any]) -> Bool { 17 let sourceApplication = options[UIApplication.OpenURLOptionsKey.sourceApplication] as! String? 18 if FUIAuth.defaultAuthUI()?.handleOpen(url, sourceApplication: sourceApplication) ?? false { 19 return true 20 } 21 // other URL handling goes here. 22 return false 23 } 24 25 26 // MARK: UISceneSession Lifecycle 27 28 func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { 29 // Called when a new scene session is being created. 30 // Use this method to select a configuration to create the new scene with. 31 return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) 32 } 33 34 func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { 35 // Called when the user discards a scene session. 36 // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 37 // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 38 } 39 40 41}

ViewController.swift

1 2import UIKit 3import Firebase 4import FirebaseAuth 5import FirebaseUI 6 7class ViewController: UIViewController, FUIAuthDelegate { 8 9 10 let authUI = FUIAuth.defaultAuthUI() 11 let providers: [FUIAuthProvider] = [ 12 FUIGoogleAuth(), 13 FUIFacebookAuth(), 14 FUITwitterAuth(), 15 FUIPhoneAuth(authUI:FUIAuth.defaultAuthUI()), 16 ] 17 18 override func viewDidLoad() { 19 super.viewDidLoad() 20 21 authUI?.delegate = self 22 self.authUI?.providers = providers 23 let authViewController = (authUI?.authViewController())! 24 self.present(authViewController, animated: true, completion: nil) 25 26 } 27 func authUI(_ authUI: FUIAuth, didSignInWith user: FIRUser?, error: Error?) { 28 // handle user and error as necessary 29 } 30}

![]

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

https://github.com/firebase/FirebaseUI-iOS/blob/master/Auth/README.md
で解決した.Firebaseの公式ページはごみ

投稿2020/12/26 09:35

apeirogon0813

総合スコア117

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問