Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core"

I am making a React-Native mobile application and want to incorporate Firebase and Firebase Authentication. However, I am facing this error when I run 'pod install' or 'pod update':

enter image description here

I did some research and found out that this issue has not yet been resolved by Google (https://issuetracker.google.com/issues/254418199), but I came across a workaround (https://github.com/firebase/firebase-ios-sdk/issues/10359) which said to add a version specifier to the Podfile: pod 'FirebaseAuth', '>= 9.6.0'. However, even after I added the line into the Podfile in my iOS folder, the same error still persists. May I know if I'm doing something wrongly?

like image 237
Vanessa Stanley Avatar asked Dec 21 '25 23:12

Vanessa Stanley


2 Answers

I stumbled upon the same issue. It seems it's a compatibility issue with the latest Firesbase SDK version (10).

For now something that worked for me is to place this at the top of the Podfile:

$FirebaseSDKVersion = '9.6.0' (Docs)

This overrides the default firebase sdk and assures it uses the downgraded version.

Now just execute pod install and give a try. If it doesn't work try removing the Podfile.lock and the Pods folder and try again.

BTW I didn't need this line in the Podfile as one of the resources you shared mentioned:

pod 'FirebaseAuth', '>= 9.6.0'

like image 183
Alex Rendón Avatar answered Dec 23 '25 19:12

Alex Rendón


try to delete Podfile.lock and run cd ios && pod install --repo-update

like image 31
lagorita Avatar answered Dec 23 '25 19:12

lagorita