Matt Corley Matt Corley - 3 months ago 29
Swift Question

FIRDatabase not found

I am trying to add the Firebase Realtime Database feature in my application but I realised I had not put it in my

pod file
.

So that's what I did, I added
'Firebase/Database'
and ran
pod update
and went back into my workspace and I still cannot access
FIRDatabase
.

Here is what my
podfile
looks like:

target 'myproject' do
pod 'Firebase'
pod 'Firebase/Auth
pod 'Firebase/Database'
end


Thank you to anybody that replies it, is much appreciated.

Answer

Did you open the cocoapod generated file .xcworkspace or the one you already had .xcodeproj? Try to use Swift 3 and Xcode 8

Thats the way you should do it inside the podfile:

platform :ios, '8.0'
use_frameworks!

    target 'YourTargetName' do
      pod "Firebase"
      pod 'Firebase/Database'
    end