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;
}
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
update your pods. open terminal go to your project directory and type the following command
There are two ways of adding the Firebase SDK to your iOS project. You can either use CocoaPods, in which case its really important to make sure your pod dependency is in the target you are using. E.g.
There are a lot of different ways of configuring targets in CocoaPods, so your Podfile may look different. The important thing is that the target you specify is linked with the pod - in this case I have specified the Analytics pod so its available to all targets, but if I put it just in the Target1
do...end
block, then it wouldn't be available in Target2.If you're using the framework integration method, then make sure the libraries are specified in the Link Binary With Libraries section of your Build Phases tab. This should happen automatically if you drag them into a Frameworks group in Xcode.
Finally, if that doesn't work, Xcode may have cached something bad. Try opening the Product menu, hold down Option and click Clean build folder.
I had similar issue stating that FirebaseMessaging module not found in header even though I had correct Podfile configuration.
You can remove CocoaPods from project using this link.
Thereafter, you can add CocoaPods again using this link.
Below is snapshot for Podfile that I have used.
Below snapshot shows log on dependencies that are installed using Pods.