Leon Chaewon Kong's dev blog

React Native - could not find a valid GoogleService-Info.plist in your project

I got “could not find a valid GoogleService-Info.plist in your project.” in xcworkspace file while building app after adding react-native-firebase to my project.

could not find a valid GoogleService-Info.plist in your project.

Error that occured.

How To Reproduce

  1. Install react-native-firebase
$ yarn add react-native-firebase
  1. Create Firebase iOS App Project
  2. Manually Add GoogleService-Info.plist to “ios/[project-name]/” Directory.
  3. Add Firebase to Podfile
$ pod 'Firebase/Analytics'
  1. Build and Launch App

Solution

  1. Open up project with “[project_name].xcodproj (Not [project_name].xcworkspace)

  2. Right Click to Your Project Directory in Left Tab.
  3. Click “Add Files to [project_name]” and Add “GoogleService-Info.plist”

  4. You Will See “GoogleService-Info.plist” in Build Phases Tab in Copy Bundle Resources.

  5. Clean Up Build and Re-build it.

You will find no error then. Problem solved.

References