title: FirebaseIOS: Use of Undeclared Type 'DatabaseReference'
body: <p>Sorry for the weird question</p>
  
  <p>Yesterday I had to update my firebase pod, before that everything was fine, but after that, I can't retrieve data anymore</p>
  
  <p>So here's my code</p>
  
  <pre><code>    //  let userID = FIRAuth.auth()?.currentUser?.uid
      var rsef: DatabaseReference! // undeclared
  
      rsef = Database.database().reference() //. undeclared
  </code></pre>
  
  <p>I read the official firebase setup instructions, those are right, but I don't know why it says undeclared</p>
  
  <p>For reference, here's my full code</p>
  
  <pre><code> ref.child("KurdishRsta").child((FIRAuth.auth()?.currentUser?.uid)!).childByAutoId().queryOrderedByKey().observe(.childAdded, with:
          { (snapshot) in
              print("Database\(String(describing: snapshot.value))")
          let value = snapshot.value as? NSDictionary
          let FullRsta1 = value?["Rsta"]
          let FullMeaning1 = value?["Meaning"]
  
  
  
  
  
          self.RetrivedRsta.insert(RstasFromFirebase(FullRsta:FullRsta1 as! String ,FullMeaning : FullMeaning1 as! String), at: 0)
  
          self.tableview.reloadData()
  
  
  
      })
  }
  </code></pre>
  
  <p>the podfile</p>
  
  <pre><code>    Target 'Dictionary' do
    # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
     use_frameworks!
     pod 'SDWebImage', '~&gt;3.8'
     pod 'Firebase/Core'
     pod 'Firebase/Auth'
     pod 'Firebase/Storage'
     pod 'Firebase/Database'
  
    # Pods for Dictionary
  pod 'SVProgressHUD'
  pod 'SKSplashView'
  pod "FGTranslator"
  pod 'SCLAlertView-Objective-C'
  pod 'OneSignal'
  pod 'Google/Analytics'
  pod 'Firebase/Core'
  pod 'Firebase/Auth'
  pod 'Firebase/Storage'
  pod 'Firebase/Database'
  pod 'ChameleonFramework'
  pod 'QMChatViewController'
  pod 'ApiAI'
  pod 'Firebase/RemoteConfig'
  pod "ZHPopupView"
  pod 'FCAlertView'
  pod 'JSQMessagesViewController'
  pod "CZPicker"
  pod 'DTTJailbreakDetection'
  pod 'MBProgressHUD', '~&gt; 1.0.0'
  pod 'PayPal-iOS-SDK'
  </code></pre>