I followed all instructions for integrating the new firebase
release on ios
:
I downloaded the file GoogleService-Info.plist
and include it in the project.
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; }
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.
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.
I ended up fixing it by using
#import <Firebase/Firebase.h>
instead of
@import Firebase
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.
It solved the issue for me
Hope it helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With