question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FirebaseCore/FIRApp.h' file not found

See original GitHub issue

Upgrading to version 10.0.0 (from a quite an older version), iOS build failed with the following error:

xxxxxx/node_modules/react-native-fcm/ios/RNFIRMessaging.m:1:
xxxxxx/node_modules/react-native-fcm/ios/RNFIRMessaging.h:4:9: fatal error: 'FirebaseCore/FIRApp.h' file not found
#import <FirebaseCore/FIRApp.h>
        ^
1 error generated.

This affects debug builds only.

I believe the that the cause is framework/header search paths in RNFIRMessaging.xcodeproj/project.pbxproj:

				FRAMEWORK_SEARCH_PATHS = (
					"$(inherited)",
					"$(PROJECT_DIR)/../../../ios/Pods/**",
					"$(SRCROOT)/../../../node_modules/react-native-firestack/ios/**",
				);
				GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
				HEADER_SEARCH_PATHS = (
					"$(SRCROOT)/../../react-native/React/**",
					"$(PROJECT_DIR)/../../../ios/Pods/**",
					"$(SRCROOT)/../../../node_modules/react-native-firestack/ios/**",

while in Release scheme it is set to this:

				FRAMEWORK_SEARCH_PATHS = (
					"$(inherited)",
					"$(PROJECT_DIR)/../../../ios/**",
					"$(SRCROOT)/../../../node_modules/react-native-firestack/ios/**",
				);
				HEADER_SEARCH_PATHS = (
					"$(SRCROOT)/../../react-native/React/**",
					"$(SRCROOT)/../../../ios/**",
					"$(SRCROOT)/../../../node_modules/react-native-firestack/ios/**",
				);

This configuration assumes usage of Cocoapods.

Changing "$(PROJECT_DIR)/../../../ios/Pods/**" to the more universal "$(PROJECT_DIR)/../../../ios/**" as in the Release scheme fixes this issue

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:22 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
evollucommented, Oct 9, 2017

@sibelius Move all your Firebase SDK into /ios/Pods folder. it is not working for you?

1reaction
ArminSpahiccommented, May 25, 2019

At the end I just used apns for the project push notification

Read more comments on GitHub >

github_iconTop Results From Across the Web

Header file (FirebaseCore/FirebaseCore.h) not found, despite ...
I am trying to manually import and use the Firebase framework in my iOS application. I am starting off with the basic bare...
Read more >
'FirebaseCore/FirebaseCore.h' file not found #1977 - GitHub
Issue Every other build I keep getting 'FirebaseCore/FIRAnalyticsConfiguration.h' file not found. I keep going through the process of cleaning Pods folder ...
Read more >
'FirebaseCore/FirebaseCore.h' file not found while building for ...
iOS : ' FirebaseCore / FirebaseCore. h ' file not found while building for Release Mode in Xcode Version 11.5 (11E608c) [ Beautify...
Read more >
Flutter FirebaseCore/FirebaseCore.h file not found
Fix · 1- Open Terminal on MAC · 2- Run rm -rf ~/Library/Developer/Xcode/DerivedData/ · 3- Select flutter ios folder cd /Users/enginatalay/Desktop/ ...
Read more >
firebasecore/firebasecore.h' file not found ios
'firebasecorediagnosticsinterop/fircorediagnosticsdata.h' file not found ... Go to the project file list in the left of Xcode and select the project. Select the ...
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