Reputation: 23
After installing firebase pods, i imported the firebase library into my file, i.e.
Import Firebase
after adding, whenever i start typing, Auth.. it is not showing in auto completion, and similarly other methods and classes of firebase are also not getting shown in auto completion. Moreover, on typing manually, it gives error: "Use of unresolved identifier 'Auth'".
Upvotes: -4
Views: 1394
Reputation: 5470
While you haven't given us much to work with, I'll give this a shot.
Firstly, I would follow this tutorial which describes how to install it. I will also detail it here.
You will need to install CocoaPods
sudo gem install cocoapods
Create a Firebase project in the Firebase Console, if you don't already have one. If you already have an existing Google project associated with your mobile app, click Import Google Project. Otherwise, click Create New Project.
Click Add Firebase to your iOS app and follow the setup steps. If you're importing an existing Google project, this may happen automatically and you can just download the config file.
When prompted, enter your app's bundle ID. It's important to enter the bundle ID your app is using; this can only be set when you add an app to your Firebase project.
At the end, you'll download a GoogleService-Info.plist file. You can download this file again at any time.
If you haven't done so already, copy this into your Xcode project root.
ADDING THE SDK
Open the terminal and CD to your project directory.
Type pod init
, then nano Podfile
Add pod 'Firebase/Core'
before end
Then CTRL + X, y, Enter
Now type pod install
Then, open your-project.xcworkspace
(Important to open the xcworkspace
and not the other)
And finally, Download a GoogleService-Info.plist file from [Firebase console and include it in your app.
Yay!
Now in your app
import Firebase
Upvotes: 2