Zhong Qing
Zhong Qing

Reputation: 11

FirebaseApp.configuration() unresolved identifier

I'm creating a social app (out of personal interest) using Xcode on my macOS Catalina 10.15.6 and facing tons of config issues before really doing something.

I'm stuck in this swift compiler error for 2 days already: Use of unresolved identifier 'FirebaseApp'

I've updated Ruby successfully.

I followed the instructions on the firebase official website

import UIKit
import Firebase

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

  var window: UIWindow?

  func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    FirebaseApp.configure()
    return true
  }
}

I've met bumps all along after executing "pod init" in Terminal. This was solved after I updated Ruby. I've got some help from Stack Overflow posts but couldn't find the one that solve my problem.

Upvotes: 1

Views: 216

Answers (1)

mflknr
mflknr

Reputation: 130

I have found the official documentation regarding the setup misleading. Therefore I use import FirebaseCore when implementing FirebaseApp.configure() and not as suggested import Firebase.

Upvotes: 2

Related Questions