LoginSignup
0
1

More than 5 years have passed since last update.

XcodeでFirebaseを導入した後、Thread 1: signal SIGABRTやNo such module 'Firebase'が出たときの有効な解決手段

Posted at

公式ページを参考にFirebaseを導入



import UIKit
//Firebase用追加コード
import Firebase

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        window = UIWindow()
        window?.rootViewController = UINavigationController(rootViewController: LoginVC())

//Firebase用追加コード
        FirebaseApp.configure()


        return true
    }

シミュレータを立ち上げると、
スクリーンショット 2019-01-21 3.57.07.png
エラーが。。。

Thread 1: signal SIGABRT

別のエラー
スクリーンショット 2019-01-21 4.00.08.png

No such module 'Firebase'

にも有効な解決手段です。

解決法

Podfileの中に

pod 'Firebase/Firestore'

を追加。

ターミナルで

pod install

をして、
Finder上でアプリケーションを開き
白いアイコンのInstagram.xcworkspaceを開くとエラーが消えてました。

0
1
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
0
1