I have imported the Firebase .plist into my project and also all the relevant pods such as: (Firebase, FirebaseDatabase, FirebaseAuth, FirebaseCore, FirebaseInstanceID) but, I'm still getting this error even though my code is similar to the one in Firebase's docs.
What is the problem?
Edit: Actual code:
import UIKit
import Firebase
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
let myDatabase = Database.database().reference() <- Error
return true
}
Error: Use of unresolved identifier 'Database'
EDIT2: I solved the issue by following these steps here