Use of unresolved identifier 'FIRDatabase' when using Firebase

前端 未结 6 1945
不知归路
不知归路 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条回答
  •  旧时难觅i
    2021-02-18 17:04

    1. First Just make sure your pod file contains pod 'Firebase/Database'
    2. Add those two lines to your code:

    import Firebase

    import FirebaseDatabase

提交回复
热议问题