expo: [SDK 37] - Firebase is not configured. Ensure that you have configured 'GoogleService-Info.plist' correctly.

🐛 Bug Report

Environment

Expo CLI 3.18.6 environment info:
    System:
      OS: macOS Mojave 10.14.6
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 12.8.1 - ~/.nvm/versions/node/v12.8.1/bin/node
      Yarn: 1.15.2 - /usr/local/bin/yarn
      npm: 6.10.2 - ~/.nvm/versions/node/v12.8.1/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    IDEs:
      Android Studio: 3.5 AI-191.8026.42.35.6010548
      Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^37.0.0 => 37.0.8 
      react: 16.9.0 => 16.9.0 
      react-native: https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz => 0.61.4 
    npmGlobalPackages:
      expo-cli: 3.18.6

Targeting: iOS devices

Steps to Reproduce

I’m not sure there’s really a specific case here but setting up a project to use Firebase analytics following from https://docs.expo.io/guides/setup-native-firebase/ and building the iOS app may throw the error.

The error is thrown the moment we invoke the Analytics function setCurrentScreen like below:

Analytics.setCurrentScreen(currentRouteName, currentRouteName)

Expected Behaviour

Wasn’t expecting any error to be thrown in regards to the configuration. But this is what happens when the function described above is called:

Firebase is not configured. Ensure that you have configured ‘GoogleService-Info.plist’ correctly.

In case anyone is wondering, the GoogleService-Info.plist was simply downloaded from what Firebase generated and placed inside

/assets/firebase/GoogleService-Info.plist

Then, in app.json, in the ios configuration I point to the plist file, like this:

"ios": {
      "supportsTablet": false,
      "bundleIdentifier": "#####",
      "buildNumber": "1.0.13",
      "googleServicesFile": "./assets/firebase/GoogleService-Info.plist"
    },

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 12
  • Comments: 17 (4 by maintainers)

Most upvoted comments

I found the issue! I released an OTA Update to my App that included the Firebase Analytics but forgot to release an iOS build to Test Flight too. Remember: when app.json (eg ìos.googleServicesFile`) is changed, it must be released a new iOS build. I did it and it fixed the problem 🙌

@Nilomiranda if you are still using the Expo client and have not ejected, read this section of the guide https://docs.expo.io/versions/latest/sdk/firebase-analytics/#expo-client-limitations–configuration

Please use just the 👍 reaction on issues. If an issue is marked as “Needs Triaged” it will be triaged amongst the other issues.

The best way to resolve an issue if it is truly important to you is to help diagnose the root cause. Issues that include diagnosis of the root cause will be tagged with “⭐️Root Cause Known”.