react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

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

Open stereodenis opened this issue 8 years ago • 67 comments

@chrisbianca image

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?

stereodenis avatar May 19 '18 11:05 stereodenis

I'm encountering the same issue, any known workarounds on this?

NirpE avatar May 21 '18 02:05 NirpE

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'

jerinjohnk avatar May 21 '18 15:05 jerinjohnk

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 avatar May 22 '18 15:05 chrisbianca

@chrisbianca thanks. Did a pod update which somehow fixed the issue.

jerinjohnk avatar May 22 '18 16:05 jerinjohnk

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?

vishal-android-freak avatar May 23 '18 20:05 vishal-android-freak

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 avatar May 23 '18 20:05 rikur

@rikur tried it couple of times. Same issue persists.

vishal-android-freak avatar May 24 '18 00:05 vishal-android-freak

I get

'FirebaseCore/FIRAnalyticsConfiguration.h' file not found

when trying to archive. Deleted pods and node_modules and reinstalled them but didn't help.

NirpE avatar May 24 '18 05:05 NirpE

FirebaseCore/FirebaseCore.h not found

when trying to archive.

Porshe avatar May 25 '18 16:05 Porshe

I got the same issue. This issue is not resolved yet.

wanbok avatar May 25 '18 17:05 wanbok

My solution is downgrade to RNFirebase to 4.1.0, Firebase/Core and Firebase/Message to ~> 4.13

wanbok avatar May 25 '18 17:05 wanbok

@wanbok if you archive app does everything work normally? Are you using Firebase Functions? Care to share your Podfile lines for all Firebase dependencies?

NirpE avatar May 28 '18 10:05 NirpE

FirebaseCore/FirebaseCore.h not found same issue when trying to archive. Run on device works fine, only archive is failing

zkrige avatar May 28 '18 13:05 zkrige

How come this issue is closed? I have the same issue. Doesn't seem resolved.

Rojuinex avatar May 30 '18 08:05 Rojuinex

yep same issue here

azraelx23 avatar May 31 '18 19:05 azraelx23

Same here~

pearlismylove avatar Jun 05 '18 03:06 pearlismylove

+1

oferRounds avatar Jun 06 '18 01:06 oferRounds

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.

brianinator avatar Jun 06 '18 18:06 brianinator

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

jerinjohnk avatar Jun 07 '18 07:06 jerinjohnk

This issue does not seem to be resolved, have not found a decent solution.

Benjumali avatar Jun 22 '18 15:06 Benjumali