Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Module install on ios

Tags:

I followed all instructions for integrating the new firebase release on ios:

  1. I downloaded the file GoogleService-Info.plist and include it in the project.

  2. I installed the framework with cocoapods

The problem is with this line:

@import Firebase; 

Xcode prints this error:

"Module Firebase not found"

What is the solution?

My code :

#import "AppDelegate.h"  @import Firebase  @interface AppDelegate ()  @end  @implementation AppDelegate  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {     [FIRApp configure];      // Override point for customization after application launch.     return YES; } 

like image 825
N.Hicheri Avatar asked May 19 '16 11:05

N.Hicheri


People also ask

Can you use Firebase with iOS?

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.

How to add Firebase to project?

Open the Firebase Assistant: Tools > Firebase. In the Assistant pane, choose a Firebase product to add to your app. Expand its section, then click the tutorial link (for example, Analytics > Log an Analytics event). Click Connect to Firebase to connect your Android project with Firebase.


2 Answers

I ended up fixing it by using

#import <Firebase/Firebase.h>

instead of

@import Firebase

like image 167
Rubberduck Avatar answered Sep 28 '22 04:09

Rubberduck


Got the same issue on the import. My target's build settings overrode the 'Header search path' without the '$(inherited)' flag

'pod update' warns you about that.

  1. Open your target build settings
    target build settings
  1. In 'Header search paths' add a line containing $(inherited).

It solved the issue for me

Hope it helps

like image 43
adolphefrancois Avatar answered Sep 28 '22 04:09

adolphefrancois