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

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

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

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

Twitter

Twitterは、140文字以内の「ツイート」と呼ばれる短文を投稿できるサービスです。Twitter上のほぼ全ての機能に対応するAPIが存在し、その関連サービスが多く公開されています。

Xcode

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

Swift

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

Q&A

0回答

1469閲覧

No such module 'FirebaseUI'

takahiro00

総合スコア84

Firebase

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

Twitter

Twitterは、140文字以内の「ツイート」と呼ばれる短文を投稿できるサービスです。Twitter上のほぼ全ての機能に対応するAPIが存在し、その関連サービスが多く公開されています。

Xcode

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

Swift

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

1グッド

0クリップ

投稿2019/08/03 09:20

編集2019/08/04 07:55

前提・実現したいこと

SwiftでFirebaseを使ってTwitterのログイン機能を作りたいのですが、
ビルドした際に「No such module 'FirebaseUI'」になってしまいます。(xcworkspaceから開いています)
前にも同じ現象になり、以下で質問させていただいたのですが、その時はクリーンビルドで解決したのですが、
別の部分を修正していたら(profile)また同じ現象になり、今回はクリーンビルドでも直りません。。。。。。
ご教授頂ければと思います。

以下のサイトを参考に作成しています。
リンク内容
↓前回の質問
リンク内容

ご教授頂ければと思います。

発生している問題・エラーメッセージ

No such module 'FirebaseUI'

該当のソースコード

ViewController.swift

swift

1import UIKit 2import Firebase 3import FirebaseUI 4 5class ViewController: UIViewController,FUIAuthDelegate { 6 7 @IBOutlet weak var AuthButton: UIButton! 8 9 var authUI: FUIAuth { get { return FUIAuth.defaultAuthUI()!}} 10 // 認証に使用するプロバイダの選択 11 let providers: [FUIAuthProvider] = [ 12 FUITwitterAuth(), 13 ] 14 15 override func viewDidLoad() { 16 super.viewDidLoad() 17 // authUIのデリゲート 18 self.authUI.delegate = self 19 self.authUI.providers = providers 20 AuthButton.addTarget(self,action: #selector(self.AuthButtonTapped(sender:)),for: .touchUpInside) 21 } 22 23 @objc func AuthButtonTapped(sender : AnyObject) { 24 // FirebaseUIのViewの取得 25 let authViewController = self.authUI.authViewController() 26 // FirebaseUIのViewの表示 27 self.present(authViewController, animated: true, completion: nil) 28 } 29 30 // 認証画面から離れたときに呼ばれる(キャンセルボタン押下含む) 31 public func authUI(_ authUI: FUIAuth, didSignInWith user: User?, error: Error?){ 32 // 認証に成功した場合 33 if error == nil { 34 self.performSegue(withIdentifier: "toTopView", sender: self) 35 } 36 // エラー時の処理をここに書く 37 } 38} 39

↓AppDelegate.swift

swift

1import UIKit 2import Firebase 3import FirebaseUI 4import TwitterKit 5 6@UIApplicationMain 7class AppDelegate: UIResponder, UIApplicationDelegate { 8 9 var window: UIWindow? 10 11 override init() { 12 super.init() 13 // Firebase関連の機能を使う前に必要 14 FirebaseApp.configure() 15 } 16 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 17 //Twitter認証用のイニシャライズ 18 TWTRTwitter.sharedInstance().start(withConsumerKey:"XXXXX",consumerSecret:"XXXXX") 19 return true 20 } 21 22// func application(_ application: UIApplication, 23// didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) 24// -> Bool { 25// FirebaseApp.configure() 26// return true 27// } 28 29 func applicationWillResignActive(_ application: UIApplication) { 30 // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 31 // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 32 } 33 34 func applicationDidEnterBackground(_ application: UIApplication) { 35 // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 36 // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 37 } 38 39 func applicationWillEnterForeground(_ application: UIApplication) { 40 // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 41 } 42 43 func applicationDidBecomeActive(_ application: UIApplication) { 44 // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 45 } 46 47 func applicationWillTerminate(_ application: UIApplication) { 48 // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 49 } 50 51 52} 53

Podfileは以下のように書いています。

# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'SwiftTest01' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! # Pods for SwiftTest01 pod 'Firebase/Database' #pod 'MessageKit', '>= 1.0.0' #pod 'MessageKit' pod 'JSQMessagesViewController' #pod 'MessageInputBar' #pod 'FirebaseUI' pod 'Firebase/Core' pod 'FirebaseUI/Auth' pod 'FirebaseUI/Twitter' end

試したこと

クリーンビルドはしましたが、解決しません。
profileは
pod 'FirebaseUI'でインストールするとFBSDKの部分でエラーになるので、
pod 'FirebaseUI/Auth'
pod 'FirebaseUI/Twitter'でTwitterのみインストールしています。

補足情報(FW/ツールのバージョンなど)

swift4
FirebaseUI 8.0.4
FirebaseAuth (6.2.1)
FirebaseAuthInterop (1.0.0)
FirebaseCore (6.1.0)
FirebaseDatabase (6.0.0)

---追記----
FirebaseUIのTwitter認証は廃止されていますので自分で実装する必要あるそうですが、
No such module 'FirebaseUI'部分でエラーになるのはまた別に原因があるのではと思っています。。。
リンク内容

kbel23👍を押しています

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

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

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

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

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

xenbeat

2019/08/04 05:15

念のためFirebaseUIとFirebase/Coreのバージョンを追記ください。
takahiro00

2019/08/04 07:55

関係ありそうなバージョンを追記しました。
xenbeat

2019/08/04 08:47

質問文にあるPodfileは次のように変更したという理解で良いですか? ``` #pod 'FirebaseUI' pod 'Firebase/Core' pod 'FirebaseUI/Auth' pod 'FirebaseUI/Twitter' ``` ↓ ``` pod 'FirebaseUI' pod 'Firebase/Core' #pod 'FirebaseUI/Auth' #pod 'FirebaseUI/Twitter' ```
takahiro00

2019/08/04 08:50

pod 'FirebaseUI' pod 'Firebase/Core' #pod 'FirebaseUI/Auth' #pod 'FirebaseUI/Twitter' ↑でも試しましたが、それだとFBSDKでエラーになるので、 基本は↓でやっています。 #pod 'FirebaseUI' pod 'Firebase/Core' pod 'FirebaseUI/Auth' pod 'FirebaseUI/Twitter'
thyda.eiqau

2019/08/23 09:21

pod installでFirebaseUIが間違いなくインストールされていることを確認していますか? cat Podfile.lock | grep Firebase の結果をご提示ください。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問