Upgrading react-native from version 0.59.9 to 0.71.2 build errors could not find compatible versions for pod “GTMSessionFetcher/Core”

While upgrading react-native from version 0.59.9 to 0.71.2, I am facing multiple build errors, no surprise that there is drastic changes happened from 0.59.9 to 0.71.2.

Error : CocoaPods could not find compatible versions for pod “GTMSessionFetcher/Core”

[!] CocoaPods could not find compatible versions for pod “GTMSessionFetcher/Core”:
In Podfile:
RNFBAuth (from ../node_modules/@react-native-firebase/auth) was resolved to 17.0.0, which depends on
Firebase/Auth (= 10.4.0) was resolved to 10.4.0, which depends on
FirebaseAuth (~> 10.4.0) was resolved to 10.4.0, which depends on
GTMSessionFetcher/Core (< 4.0, >= 2.1)

RNGoogleSignin (from `../node_modules/react-native-google-signin`) was resolved to 2.1.1, which depends on
  GoogleSignIn (~> 5.0.0) was resolved to 5.0.2, which depends on
    GTMSessionFetcher/Core (~> 1.1)

[!] Do not use “pod install” from inside Rosetta2 (x86_64 emulation on arm64).

[!] – Emulated x86_64 is slower than native arm64

[!] – May result in mixed architectures in rubygems (eg: ffi_c.bundle files may be x86_64 with an arm64 interpreter)

[!] Run “env /usr/bin/arch -arm64 /bin/bash –login” then try again.

Solution (fix) for CocoaPods could not find compatible versions for pod “GTMSessionFetcher/Core”

add below line on top of your pod file, this should be first line of your pod file

$FirebaseSDKVersion = ‘9.6.0’

Reference: thanks to Stackoverflow post

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.