React-native-firebase: Module 'Firebase' not found on @import Firebase (6.0.0-alpha.25)

Created on 19 Jun 2019  路  6Comments  路  Source: invertase/react-native-firebase

Wanting to try out 6.0.0-alpha.25 for Analytics only on an existing RN iOS app that is using an exsting pod file.

Using RN 0.59.5

Steps I've taken:

  1. yarn add @react-native-firebase/app
  2. yarn add @react-native-firebase/analytics@alpha
  3. react-native link @react-native-firebase/analytics

    • I can see the pod file has been updated with:

      pod 'RNFBAnalytics', :path => '../node_modules/@react-native-firebase/analytics'

  4. Followed these steps to add Firebase credentials. https://invertase.io/oss/react-native-firebase/quick-start/ios-firebase-credentials

Issue I'm having
Xcode giving error in AppDelegate.m: Module 'Firebase' not found on@import Firebase;

Recommended in docs:
Screen Shot 2019-06-18 at 6 30 31 PM

Libraries were not showing up linked in Xcode as I expected, so i linked them manually:
Screen Shot 2019-06-18 at 6 44 12 PM
Screen Shot 2019-06-18 at 6 44 39 PM

Still getting same error. Am I missing anything here?

Stale

Most helpful comment

@davetownsend after missing (*1*) react-native****_ link @react-native-firebase/app as it was not specified from the documentation, I did (*2*) pod install and placed:

(*3*)

  rootView.loadingView = launchScreenView;

  // paste the code here
  if ([FIRApp defaultApp] == nil) {
    [FIRApp configure];
  }

  return YES;

Do the numbers 1, 2, and 3 respectively.

All 6 comments

The doc said supported versions required minimum RN 0.60.0.
https://invertase.io/oss/react-native-firebase/v6

Did you link it ?

yarn add @react-native-firebase/app
react-native link @react-native-firebase/app

https://www.npmjs.com/package/@react-native-firebase/app

@mihaidaviddev - Yes I did, thanks. Seems I've tried just about every suggested trick. Gonna try and spin up a new app to see if this will work.

Hello 馃憢, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

@davetownsend after missing (*1*) react-native****_ link @react-native-firebase/app as it was not specified from the documentation, I did (*2*) pod install and placed:

(*3*)

  rootView.loadingView = launchScreenView;

  // paste the code here
  if ([FIRApp defaultApp] == nil) {
    [FIRApp configure];
  }

  return YES;

Do the numbers 1, 2, and 3 respectively.

Was this page helpful?
0 / 5 - 0 ratings