react-native-fcm: fatal error: module 'Firebase' not found, not using cocoapods
I’m running this versions of RN and RNFCM
"react-native": "0.50.3",
"react-native-fcm": "^14.1.3",
I’m getting an error on build saying It can’t find the Firebase module, I’ve added the Firebase manually and linked the library manually also.
I’ve added firebase.h, module.modulemap. Added the user headers, Header and framework search paths, Also I’ve added the the library to the build phase
I’ve also read #826 and followed some solutions there and didn’t work.
Here are some screenshots that might be useful


About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 2
- Comments: 21 (4 by maintainers)
Commits related to this issue
- Revert Firebase import format, work around https://github.com/evollu/react-native-fcm/issues/896 — committed to haggholm/react-native-fcm by deleted user 6 years ago
Following, having the same issue
Having the same issue 😦
My default import in RNFIRMessaging.h was:
#if __has_include(<Firebase.h>) #import <FirebaseCore/FirebaseCore.h> #import <FirebaseMessaging/FirebaseMessaging.h> #import <FirebaseInstanceID/FirebaseInstanceID.h> #else @import Firebase; #endif
I modified it to:
#import <FirebaseCore/FirebaseCore.h> #import <FirebaseMessaging/FirebaseMessaging.h> #import <FirebaseInstanceID/FirebaseInstanceID.h>
Now it seems to be working fine.
Nevermind it actually works for me on 15.0.2, out-of-the-box, with Firebase SDK 5.1.0 and no CocoaPods. Make sure you have the frameworks in
ios/Frameworks, make sure they are added inside of Xcode and that they have the right Target Membership. Also make sure Firebase.h and module.modulemap are in the same folder and also added to Xcode. It should then work without any sort of modification toRNFIRMessaging.horRNFIRMessaging.xcodeproj.