'FirebaseCore/FIRAnalyticsConfiguration.h' file not found on v5
@chrisbianca

PODS:
- Firebase (5.0.1):
- Firebase/Core (= 5.0.1)
- Firebase/Auth (5.0.1):
- Firebase/CoreOnly
- FirebaseAuth (= 5.0.0)
- Firebase/Core (5.0.1):
- Firebase/CoreOnly
- FirebaseAnalytics (= 5.0.0)
- Firebase/CoreOnly (5.0.1):
- FirebaseCore (= 5.0.1)
- Firebase/Messaging (5.0.1):
- Firebase/CoreOnly
- FirebaseMessaging (= 3.0.0)
- FirebaseAnalytics (5.0.0):
- FirebaseCore (~> 5.0)
- FirebaseInstanceID (~> 3.0)
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- nanopb (~> 0.3)
- FirebaseAuth (5.0.0):
- FirebaseCore (~> 5.0)
- GTMSessionFetcher/Core (~> 1.1)
- FirebaseCore (5.0.1):
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- FirebaseInstanceID (3.0.0):
- FirebaseCore (~> 5.0)
- FirebaseMessaging (3.0.0):
- FirebaseCore (~> 5.0)
- FirebaseInstanceID (~> 3.0)
- GoogleToolboxForMac/Logger (~> 2.1)
- Protobuf (~> 3.1)
- GoogleToolboxForMac/Defines (2.1.4)
- GoogleToolboxForMac/Logger (2.1.4):
- GoogleToolboxForMac/Defines (= 2.1.4)
- "GoogleToolboxForMac/NSData+zlib (2.1.4)":
- GoogleToolboxForMac/Defines (= 2.1.4)
- GTMSessionFetcher/Core (1.1.15)
- nanopb (0.3.8):
- nanopb/decode (= 0.3.8)
- nanopb/encode (= 0.3.8)
- nanopb/decode (0.3.8)
- nanopb/encode (0.3.8)
- Protobuf (3.5.0)
"react-native": "0.54.0" "react-native-firebase": "^4.2.0"
What's wrong?
I'm encountering the same issue, any known workarounds on this?
Was getting the same error. So as per the comment @dluksza in #1106 Updated podfile to use version 4.2.0
pod 'Firebase/Core','4.2.0'
pod 'Firebase/Messaging','4.2.0'
But this instead gave me following error while creating a debug build.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RNFirebaseMessaging messaging:didRefreshRegistrationToken:]: unrecognized selector sent to instance 0x137ebbd20'
You need to make sure you are on:
Javascript:
react-native-firebase: v4.2.0
Pods:
Firebase/Core: v5+
This is explained in the v4.2.0 release notes.
Once you have updated your pods and npm libraries, please make sure you clean your build within XCode (I suggest restarting once you have), and then rebuilding. This is definitely a case of npm/pods/Xcode getting out of sync and there are no issues when everything is correctly installed.
@chrisbianca thanks. Did a pod update which somehow fixed the issue.
I am facing
FirebaseCore/FirebaseCore.h not found
I am on v4.2 and my pods are updated and Firebase is > 5.0
Any help?
Cocoapods can be tough to work it, some thoughts:
- if you're compiling on Xcode, make sure to open the Workspace not the Project
- delete ios/Pods ios/build, remove node_modules, re-install node_modules, re-install pods and try again
@rikur tried it couple of times. Same issue persists.
I get
'FirebaseCore/FIRAnalyticsConfiguration.h' file not found
when trying to archive. Deleted pods and node_modules and reinstalled them but didn't help.
FirebaseCore/FirebaseCore.h not found
when trying to archive.
I got the same issue. This issue is not resolved yet.
My solution is downgrade to RNFirebase to 4.1.0, Firebase/Core and Firebase/Message to ~> 4.13
@wanbok if you archive app does everything work normally? Are you using Firebase Functions? Care to share your Podfile lines for all Firebase dependencies?
FirebaseCore/FirebaseCore.h not found
same issue when trying to archive. Run on device works fine, only archive is failing
How come this issue is closed? I have the same issue. Doesn't seem resolved.
yep same issue here
Same here~
+1
I have same issue that the author reported. I've tried clean & archive, pod install without use_frameworks!, pod update and restart Xcode.
Podfile:
target '...' do
use_frameworks!
# Pods for AppCenter
pod 'AppCenter/Crashes', '~> 1.4.0'
pod 'AppCenterReactNativeShared', '~> 1.3.0'
pod 'AppCenter/Analytics', '~> 1.4.0'
# Pod for Firebase
pod 'Firebase/Core'
platform :ios, '10.0'
end
react-native-firebase: 4.2.0 firebase-ios-sdk: v5
I am successfully running it on simulator.
Update:
I decided to downgrade to react-native-firebase 4.1.0 and firebase sdk 4.13.0. After which, I began to have issues finding other react-native libraries and so I manually linked each library (instead of react-native link). Then, continued to have issues with Pods framework script and so I pod install again and I got warnings about PODS_CONFIGURATION_BUILD_DIR and I followed the suggested by updating to $(inherited) and then ran pod install again. And so no more warnings and I then proceeded to add user defined setting REACT_HEADER_PATH set to ${PODS_BUILD_DIR}/Release$(EFFECTIVE_PLATFORM_NAME)/include for my custom build configurations and added to header search paths set to recursive. I tested archiving each build configuration it was back to normal.
Using npm list my current versions
* React Native version: 0.55.4
* [email protected]
I updated my podfile according to this Medium article After that I am successfully able to create an archive build. On validating it did pass validation. Could you please try updating your podfile accordingly
This issue does not seem to be resolved, have not found a decent solution.