Use of unresolved identifier 'FIRDatabase' when using Firebase

前端 未结 6 1916
不知归路
不知归路 2021-02-18 16:48

Xcode tells me that FIRDatabaseis not an identifier. My code:

import UIKit
import Firebase

@UIApplicationMain
class AppDelegate: UIResponder, UIApp         


        
6条回答
  •  别那么骄傲
    2021-02-18 17:02

    You need to add

      pod 'Firebase/Database'
    

    to your pod file as explained here

    https://firebase.google.com/docs/database/ios/start

    Here you can find which pod includes which feature Pods and Features

提交回复
热议问题