Trying to compile my project after adding some pods. While compiling it gives below error
‘GoogleUtilities/GULURLSessionDataResponse.h’ file not found
Podfile.lock:
- FBSDKCoreKit (9.1.0):
- FBSDKCoreKit/Basics (= 9.1.0)
- FBSDKCoreKit/Core (= 9.1.0)
- FBSDKCoreKit/Basics (9.1.0)
- FBSDKCoreKit/Core (9.1.0):
- FBSDKCoreKit/Basics
- Firebase/Analytics (3.6.0):
- FirebaseAnalytics (= 3.4.2)
- Firebase/Core (3.6.0):
- Firebase/Analytics
- Firebase/CoreOnly (7.9.0):
- FirebaseCore (= 7.9.0)
- Firebase/Crashlytics (7.9.0):
- Firebase/CoreOnly
- FirebaseCrashlytics (~> 7.9.0)
- Firebase/Messaging (3.6.0):
- Firebase/Analytics
- FirebaseMessaging (= 1.2.0)
- FirebaseAnalytics (3.4.2):
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- GoogleUtilities (~> 1.2)
- FirebaseCore (7.9.0):
- FirebaseCoreDiagnostics (~> 7.4)
- GoogleUtilities/Environment (~> 7.0)
- GoogleUtilities/Logger (~> 7.0)
- FirebaseCoreDiagnostics (7.9.0):
- GoogleDataTransport (~> 8.0)
- GoogleUtilities/Environment (~> 7.0)
- GoogleUtilities/Logger (~> 7.0)
- nanopb (~> 2.30907.0)
- FirebaseCrashlytics (7.9.0):
- FirebaseCore (~> 7.0)
- FirebaseInstallations (~> 7.0)
- GoogleDataTransport (~> 8.0)
- nanopb (~> 2.30907.0)
- PromisesObjC (~> 1.2)
- FirebaseInstallations (7.9.0):
- FirebaseCore (~> 7.0)
- GoogleUtilities/Environment (~> 7.0)
- GoogleUtilities/UserDefaults (~> 7.0)
- PromisesObjC (~> 1.2)
- FirebaseInstanceID (1.0.9)
- FirebaseMessaging (1.2.0):
- FirebaseAnalytics (~> 3.3)
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleIPhoneUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- Flurry-iOS-SDK (10.1.0):
- Flurry-iOS-SDK/FlurrySDK (= 10.1.0)
- Flurry-iOS-SDK/FlurrySDK (10.1.0)
- GoogleDataTransport (8.3.0):
- GoogleUtilities/Environment (~> 7.2)
- nanopb (~> 2.30907.0)
- PromisesObjC (~> 1.2)
- GoogleInterchangeUtilities (1.2.2):
- GoogleSymbolUtilities (~> 1.1)
- GoogleIPhoneUtilities (1.2.1):
- GoogleSymbolUtilities (~> 1.0)
- GoogleUtilities (~> 1.0)
- GoogleSymbolUtilities (1.1.2)
- GoogleUtilities (1.3.2):
- GoogleSymbolUtilities (~> 1.1)
- GoogleUtilities/Environment (7.3.1):
- PromisesObjC (~> 1.2)
- GoogleUtilities/Logger (7.3.1):
- GoogleUtilities/Environment
- GoogleUtilities/UserDefaults (7.3.1):
- GoogleUtilities/Logger
- FBSDKCoreKit (9.1.0):
- FBSDKCoreKit/Basics (= 9.1.0)
- FBSDKCoreKit/Core (= 9.1.0)
- FBSDKCoreKit/Basics (9.1.0)
- FBSDKCoreKit/Core (9.1.0):
- FBSDKCoreKit/Basics
- Firebase/Analytics (3.6.0):
- FirebaseAnalytics (= 3.4.2)
- Firebase/Core (3.6.0):
- Firebase/Analytics
- Firebase/CoreOnly (7.9.0):
- FirebaseCore (= 7.9.0)
- Firebase/Crashlytics (7.9.0):
- Firebase/CoreOnly
- FirebaseCrashlytics (~> 7.9.0)
- Firebase/Messaging (3.6.0):
- Firebase/Analytics
- FirebaseMessaging (= 1.2.0)
- FirebaseAnalytics (3.4.2):
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- GoogleUtilities (~> 1.2)
- FirebaseCore (7.9.0):
- FirebaseCoreDiagnostics (~> 7.4)
- GoogleUtilities/Environment (~> 7.0)
- GoogleUtilities/Logger (~> 7.0)
- FirebaseCoreDiagnostics (7.9.0):
- GoogleDataTransport (~> 8.0)
- GoogleUtilities/Environment (~> 7.0)
- GoogleUtilities/Logger (~> 7.0)
- nanopb (~> 2.30907.0)
- FirebaseCrashlytics (7.9.0):
- FirebaseCore (~> 7.0)
- FirebaseInstallations (~> 7.0)
- GoogleDataTransport (~> 8.0)
- nanopb (~> 2.30907.0)
- PromisesObjC (~> 1.2)
- FirebaseInstallations (7.9.0):
- FirebaseCore (~> 7.0)
- GoogleUtilities/Environment (~> 7.0)
- GoogleUtilities/UserDefaults (~> 7.0)
- PromisesObjC (~> 1.2)
- FirebaseInstanceID (1.0.9)
- FirebaseMessaging (1.2.0):
- FirebaseAnalytics (~> 3.3)
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleIPhoneUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- Flurry-iOS-SDK (10.1.0):
- Flurry-iOS-SDK/FlurrySDK (= 10.1.0)
- Flurry-iOS-SDK/FlurrySDK (10.1.0)
- GoogleDataTransport (8.3.0):
- GoogleUtilities/Environment (~> 7.2)
- nanopb (~> 2.30907.0)
- PromisesObjC (~> 1.2)
- GoogleInterchangeUtilities (1.2.2):
- GoogleSymbolUtilities (~> 1.1)
- GoogleIPhoneUtilities (1.2.1):
- GoogleSymbolUtilities (~> 1.0)
- GoogleUtilities (~> 1.0)
- GoogleSymbolUtilities (1.1.2)
- GoogleUtilities (1.3.2):
- GoogleSymbolUtilities (~> 1.1)
- GoogleUtilities/Environment (7.3.1):
- PromisesObjC (~> 1.2)
- GoogleUtilities/Logger (7.3.1):
- GoogleUtilities/Environment
- GoogleUtilities/UserDefaults (7.3.1):
- GoogleUtilities/Logger
- 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 – Doesn’t work
15
Answers
Add to the Podfile:
platform :ios, '10.0'
More details at https://github.com/firebase/firebase-ios-sdk/issues/7782
I got the same error after updating
rnfirebase
to 11.3.3.I was able to solve the problem by removing ‘Firebase/Analytics’ dependency from the PodFile. i.e. by removing the following line from the Podfile:
and then run
pod install
command.Just rename
pod 'Firebase/Analytics'
to
pod 'FirebaseAnalytics'
and run
pod install
This happened to me as well. I noticed that pod ‘Firebase/Analytics’ was installing an old version:
Not sure why was that, but I fixed it by adding the version (the latest at the time this was written) in the pod:
Removing
pod 'Firebase/Core'
from thePodfile
resolved the issue for me.In my case, the error started to happen after I switched to
'Firebase/AnalyticsWithoutAdIdSupport'
from'Firebase/Analytics'
. I noticed the following happens during pod installation every time:So, somehow
Firebase/Core
causes the old Firebase to be installed as well. Therefore removing it solved the issue, because probably other Firebase dependencies depend on it anyway.This seems to be some sort of issue with
Xcode 12.4
,cocoapods 1.10.1
, andFirebase/Database 8.1.1
Today I just updated to
Xcode 12.4
andcocoapods 1.10.1
and this problem came out of no where. I deleted derived data, did a pod deintegrate, pod clean, removed the Podfile, then reinstalled all of my original pods and the problem kept occurring. What I decided to do was just install 1 pod at a time. Eventually i installed all of my Firebase pods and when went to install my GeoFire pod I got the error:The error pointed out that the current Firebase/Database I was using was
8.1.1
and GeoFire was incompatible with it. I don’t know what version I was using before today but I used the minimum version that it required pod'Firebase/Database', '~> 7.0.0'
and the problem went away. Here is my Podfile and the error is gone.Just use these versions in pubsec.yaml
after above dependency installation
run the following commands
the above method solved my problem.
The same happened to me when upgrading from SDK v7 to v8. I figured out that replacing
with
resolved the problem. The old Firebase 3.6.0 will then not anymore be loaded during pod update.
But be aware that the Mobile Ads API did change slightly from SDK v7 to v8. You have to follow these instructions to adapt your code:
Migrate Mobile Ads SDK v7 to v8
I have faced the same problem. I fixed it by rename below pod names …
pod 'Firebase/Analytics'
->pod 'FirebaseAnalytics'
pod 'Google/SignIn'
->pod 'GoogleSignIn'
For me the problem was to update to Firebase v8.x.x using the pod ‘Firebase/Admob’, then the GoogleUtilities missing file error appears. So I have replaced:
with
This allowed me to continue the build without errors and code changes, as the GoogleMobileAdSDK version 8 or 9 (January 2022) requires code migration, so this code migration is another post story.
Remove:
from your podfile and run pod install. It is deprecated and no longer needed.
I was installing Firebase/Performance, and got this error. My was Firebase was set in the Podfile fixed to 8.5.0. After setting it to a higher version 8.11.0, the project compiled again.
This is what works for me.
That pod ‘FirebaseAnalytics’, ‘8.1.0’ is the most important there.
Note: I am using Ventura and XCode 14.1
For me, I needed to follow Paul Beusterien & Tinchetsu answers:
Add at the top of the Podfile:
Specify max version for Firebase Analytics:
I was facing the same issue when I updated to Xcode 14.
To fix the issue, open the podfile and replace
pod 'Firebase/Analytics'
with
pod 'Firebase/Analytics', '~> 6.28.1’
From what I understood, when I checked the podfile.lock, it was installing Firebase/Analytics (3.6.0) by default. By mentioning a newer version of Firebase/Analytics fixed my issue.
and remember to
pod deintegrated
andpod install
after you made the change in podfile. 😛