Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot import Firebase in Swift app

In attempting to learn Firebase, I followed the steps in the IOS Quickstart section of the Firebase website. I use Cocoapods and followed the steps exactly as documented. However, "import Firebase" results in a compiler error. I don't see the Framework any where but I do see the Firebase objective C files.. . By following the manual process of downloading the zip file and adding it to the project I can make it work. However, I would like to understand what I am doing wrong. Xcode Page

like image 866
Syed Tariq Avatar asked Dec 26 '15 05:12

Syed Tariq


People also ask

How do I connect Firebase to iOS app?

Go to the Firebase console. In the center of the project overview page, click the iOS+ icon to launch the setup workflow. If you've already added an app to your Firebase project, click Add app to display the platform options. Enter your app's bundle ID in the bundle ID field.

Do you need CocoaPods for Firebase?

CocoaPods is not required for Swift Package Manager users. For Firebase versions 8 and higher, Swift Package Manager is the recommended installation method.

What is Firebase in iOS Swift?

Firebase is a mobile backend-as-a-service that provides powerful features for building mobile apps. Firebase has three core services: Realtime database. User authentication. Hosting.


1 Answers

Documentation is outdated. I've used:

import FirebaseCore
like image 175
MCMatan Avatar answered Sep 29 '22 09:09

MCMatan