Skip to content

CocoaPods could not find compatible versions for pod "GoogleDataTransport" #4013

@ahwatts

Description

@ahwatts

Issue

When adding @react-native-firebase/crashlytics@8.1.2, I first added @react-native-firebase/app@8.2.0. The app built correctly (or at least built) on both iOS and Android after adding app. However, I tried adding crashlytics, and the pod install step failed:

[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
  In snapshot (Podfile.lock):
    GoogleDataTransport (= 7.0.0, ~> 7.0)

  In Podfile:
    RNFBApp (from `../node_modules/@react-native-firebase/app`) was resolved to 8.2.0, which depends on
      Firebase/CoreOnly (~> 6.27.0) was resolved to 6.27.1, which depends on
        FirebaseCore (= 6.8.1) was resolved to 6.8.1, which depends on
          FirebaseCoreDiagnostics (~> 1.3) was resolved to 1.5.0, which depends on
            GoogleDataTransport (~> 7.0)

    RNFBCrashlytics (from `../node_modules/@react-native-firebase/crashlytics`) was resolved to 8.1.2, which depends on
      Firebase/Crashlytics (~> 6.27.0) was resolved to 6.27.1, which depends on
        FirebaseCrashlytics (~> 4.2.0) was resolved to 4.2.0, which depends on
          GoogleDataTransport (~> 6.1)


You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * changed the constraints of dependency `GoogleDataTransport` inside your development pod `RNFBCrashlytics`.
   You should run `pod update GoogleDataTransport` to apply changes you've made.

But running pod update GoogleDataTransport gives me this error:

[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
  In Podfile:
    RNFBApp (from `../node_modules/@react-native-firebase/app`) was resolved to 8.2.0, which depends on
      Firebase/CoreOnly (~> 6.27.0) was resolved to 6.27.1, which depends on
        FirebaseCore (= 6.8.1) was resolved to 6.8.1, which depends on
          FirebaseCoreDiagnostics (~> 1.3) was resolved to 1.5.0, which depends on
            GoogleDataTransport (~> 7.0)

    RNFBCrashlytics (from `../node_modules/@react-native-firebase/crashlytics`) was resolved to 8.1.2, which depends on
      Firebase/Crashlytics (~> 6.27.0) was resolved to 6.27.1, which depends on
        FirebaseCrashlytics (~> 4.2.0) was resolved to 4.2.0, which depends on
          GoogleDataTransport (~> 6.1)

It looks like RNFBApp and RNFBCrashlytics depend on different versions of GoogleDataTransport. My next step is to try to downgrade app to 8.1.0 and see if that works.

Describe your issue here


Project Files

Javascript

Click To Expand

package.json:

# N/A

firebase.json for react-native-firebase v6:

# N/A

iOS

Click To Expand

ios/Podfile:

  • I'm not using Pods
  • I'm using Pods and my Podfile looks like:
# N/A

AppDelegate.m:

// N/A


Android

Click To Expand

Have you converted to AndroidX?

  • my application is an AndroidX application?
  • I am using android/gradle.settings jetifier=true for Android compatibility?
  • I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->


Environment

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • react-native-firebase version you're using that has this issue:
    • e.g. 5.4.3
  • Firebase module(s) you're using that has the issue:
    • e.g. Instance ID
  • Are you using TypeScript?
    • Y/N & VERSION


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions