'GoogleUtilities/GULAppEnvironmentUtil.h' file not found

Running pod update fixed this for me


Try This:

  1. Delete the pod files related to Google and Firebase
  2. Install pods via "pod install" command

If pod file contains below pods, update those pods

Google/Analytics to GoogleAnalytics
Google/SignIn to GoogleSignIn

Google/Analytics and Google/SignIn are deprecated.


Problem fixed for me by following steps:

  1. Clean the project
  2. Close the Xcode
  3. Delete derived data
  4. If you have already installed the POD, kindly delete the “.xcworkspace” & “Podfile.lock” files
  5. Install pod again
  6. Open “.xcworkspace” and Run

In the Podfile, change Google/Analytics to GoogleAnalytics. The Google pod is deprecated and not compatible with recent Firebase versions.

An alternative, but not recommended workaround, could be to lock the Firebase version to something less than 5.5.

UPDATE: June 2021: There is a Crashlytics podspec bug that can also cause this issue. The workaround is to explicitly add GoogleUtilities/Environment to the Podfile or move use_frameworks! to the top of the Podfile. Details in https://github.com/firebase/firebase-ios-sdk/issues/8137. The issue will be fixed in the upcoming Firebase 8.3.0 release.