'GoogleUtilities/GULAppEnvironmentUtil.h' file not found
Solution 1
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.
Solution 2
Problem fixed for me by following steps:
- Clean the project
- Close the Xcode
- Delete derived data
- If you have already installed the POD, kindly delete the “.xcworkspace” & “Podfile.lock” files
- Install pod again
- Open “.xcworkspace” and Run
Solution 3
Running pod update
fixed this for me
Solution 4
Try This:
- Delete the pod files related to Google and Firebase
- 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.
Solution 5
Deleting Pods folder and reinstalling the pods again will fix the issue.
Related videos on Youtube
Prateek Roy
Updated on July 09, 2022Comments
-
Prateek Roy almost 2 years
Trying to compile my project after adding some pods. While compiling it gives below error
'GoogleUtilities/GULAppEnvironmentUtil.h' file not found
Podfile.lock snippet
- FirebaseCore (5.1.1): - GoogleUtilities/Logger (~> 5.2) - FirebaseDynamicLinks (3.0.2): - FirebaseAnalytics (~> 5.1) - FirebaseInAppMessaging (0.11.0): - FirebaseAnalytics (~> 5.1) - FirebaseCore (~> 5.1) - FirebaseInstanceID (~> 3.2) - GoogleUtilities/Environment (~> 5.0) - FirebaseInstanceID (3.2.1): - FirebaseCore (~> 5.1) - GoogleUtilities/Environment (~> 5.2) - FirebaseMessaging (3.1.0): - FirebaseCore (~> 5.0) - FirebaseInstanceID (~> 3.0) - GoogleUtilities/Reachability (~> 5.2) - Protobuf (~> 3.1) - FirebaseRemoteConfig (3.0.1): - FirebaseABTesting (~> 2.0) - FirebaseAnalytics (~> 5.1) - FirebaseCore (~> 5.1) - FirebaseInstanceID (~> 3.2) - GoogleUtilities/Environment (~> 5.2) - "GoogleUtilities/NSData+zlib (~> 5.2)" - Protobuf (~> 3.5) - Google/Analytics (2.0.4): - Google/Core - GoogleAnalytics (~> 3.12) - Google/Core (2.0.4): - GoogleInterchangeUtilities (~> 1.0) - GoogleNetworkingUtilities (~> 1.0) - GoogleSymbolUtilities (~> 1.0) - GoogleUtilities (~> 1.1)
-
CaSUaL almost 6 yearsseems to be related with this issue github.com/apache/cordova-ios/issues/394
-
AlphaBeta over 5 yearsHave a look at my post here to see what worked for me.
-
Shafi Muhammed over 4 yearsThis is a duplicate question, please check this stackoverflow.com/a/58389295/5572214
-
-
Paul Beusterien almost 6 yearsAre you able to make a shareable example? Or reproduce with a Firebase quickstart? github.com/firebase/quickstart-ios
-
Prateek Roy almost 6 yearsI have created a sample project. Please try building it. github.com/phoenixroy/PodsTest
-
Paul Beusterien almost 6 yearsThanks for sharing the sample. I see what's happening and will update the answer.
-
Daniel Faria Sampaio almost 5 yearsIn my case the dependency that was causing it was Google/SignIn, changed to GoogleSignIn and it's working!
-
Milan Agarwal about 4 yearsIn my case deleting the pods folder and reinstalling the pods via "pod install" command fixed the issue