Use of unresolved identifier 'FIRDatabase' when using Firebase

前端 未结 6 1946
不知归路
不知归路 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:15

    This worked for me

    1. Add pod 'Firebase/Database' to your pod file
    2. pod install
    3. Open XCode and Rebuild Project

提交回复
热议问题