2

I have developed demo ios application where I need to integrate Firebase, so I had followed the Raywenderlitch tutorials for how to integrate the Firebase SDKs in iOS who written by @David East.

After I had installed the Firebase SDKs via cocoapods, when I try to command-click on the import statement of Firebase in AppDelegate.swift(import Firebase) file, xcode goes to the following view. For more information please find the below screenshot.

enter image description here

Please find the below Podfile :

platform :ios, '8.0'
use_frameworks!

target 'SampleApplication' do

pod 'IQKeyboardManager'
pod 'Koloda'
pod 'Firebase'

end

post_install do |installer|
    `find Pods -regex 'Pods/pop.*\\.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)pop\\/\\(.*\\)\\(>\\)/\\"\\2\\"/'`
end

Also I had also reviewed the issues on SO who answered by @David East, please find the below.

1) Cannot import Firebase in Swift app
2) Cannot Import Firebase Into Swift Class

But the solution is not worked in my case. Please help me what I'm doing wrong.

Thanks in advance.

Update
I had also tried to add the framework manually from firebase official website for Integrate without CocoaPods but it still get the issues. For more information please find the below screenshot.

enter image description here

I had upload my sample application source code on dropbox, if you want then please review it. Source Code Link : https://www.dropbox.com/s/5jr0zbnymhou94c/TestFireBase.zip?dl=0

Community
  • 1
  • 1
Ramkrishna Sharma
  • 6,961
  • 3
  • 42
  • 51

1 Answers1

1

The Firebase SDK heavily changed on May 16, 2016. This changed the names of the pods and their respective functionality.

The new pod name for the standard Firebase SDK is Firebase/Core, which includes only Firebase Analytics. If you're upgrading from the old Firebase system, you probably only need these:

pod 'Firebase/Core'      # Firebase Analytics
pod 'Firebase/Database'  # Firebase Realtime Database
pod 'Firebase/Auth'      # Firebase Authentication

If you're using other Firebase functionality, refer to https://firebase.google.com/docs/ios/setup for other podnames. Don't forget that regardless of what you choose, you need to include Firebase/Core.

Zachary Espiritu
  • 937
  • 7
  • 23