Module 'FirebaseCore' not found when building project

See original GitHub issue

I have recently upgraded an app from 2.2.0 to 2.5.1 and I have stumbled upon the following error when building RNFIRMessaging.m: Module 'FirebaseCore' not found when trying to @import FirebaseCore;.

Oddly enough, if I replace that line with @import Firebase; the build succeeds and the push notifications work. I could also reproduce this issue on a newly created RN application.

I have tested this on React Native 0.39.1, the version of the package is 2.5.1 and I am using CocoaPods 1.1.1. Tested on an iPad Mini.

Have I missed some configuration step, or is this a known issue?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:18 (3 by maintainers)

github_iconTop GitHub Comments

15reactions
SuperDiskcommented, Feb 4, 2018

@ramilushev I finally got this to work by replacing the 3 lines in the file with these:

#import <FirebaseCore/FirebaseCore.h>
//import FirebaseCore;
#import <FirebaseMessaging/FirebaseMessaging.h>
//import FirebaseMessaging;
//import FirebaseInstanceID;
#import <FirebaseInstanceID/FirebaseInstanceID.h>

Not really sure what significance this has, but at least my project builds now.

12reactions
sibeliuscommented, Dec 15, 2016

U need to download the latest firebase sdk, or run an update/upgrade on cocoapods

Read more comments on GitHub >

github_iconTop Results From Across the Web

fatal error: module 'firebase_core' not found - Stack Overflow
When opening the project in XCode, make sure you open the file with the .xcworkspace extension instead of the one with .xcodeproj and...
Read more >
Module 'Firebase' not found? - Google Groups
But in the last step I got error "Module 'Firebase' not found" when trying @import Firebase; to my project AppDelegate.h. Please help.
Read more >
iOS Installation - React Native Firebase
The Podfile needs to be initialised in the ios directory of your project. ... error 'Firebase.h' file not found with <angled> include; use...
Read more >
Could not build Objective-C module 'Firebase'
Quit Xcode. Delete project's temp files located at ~/Library/Developer/Xcode/DerivedData; Delete ProjectName.xcworkspace; Delete Podfile.lock file and Pods ...
Read more >
Transfer to Apple M1 Xcode shows an error "'FirebaseCore ...
I'm using Firebase and project perfectly works with Xcode 11 on ... file not found" and "Could not build Objective-C module 'Firebase'".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found