Skip to content

MLKitCore dependency conflicts with Firebase #219

@jdarshan5

Description

@jdarshan5
[!] CocoaPods could not find compatible versions for pod "GoogleUtilities/UserDefaults":
  In snapshot (Podfile.lock):
    GoogleUtilities/UserDefaults (= 8.1.0, ~> 8.0)

  In Podfile:
    GoogleUtilities (~> 8.0) was resolved to 8.1.0, which depends on
      GoogleUtilities/UserDefaults (= 8.1.0)

    RNFBMessaging (from `../node_modules/@react-native-firebase/messaging`) was resolved to 21.14.0, which depends on
      Firebase/Messaging (= 11.11.0) was resolved to 11.11.0, which depends on
        FirebaseMessaging (~> 11.11.0) was resolved to 11.11.0, which depends on
          GoogleUtilities/UserDefaults (~> 8.0)

    RNMLKitCore (from `../node_modules/@infinitered/react-native-mlkit-core/ios`) was resolved to 3.1.0, which depends on
      MLKitVision was resolved to 0.60.0, which depends on
        MLKitCommon (~> 0.60) was resolved to 0.64.1, which depends on
          GoogleUtilities/UserDefaults (~> 6.0)


You have either:
 * changed the constraints of dependency `GoogleUtilities/UserDefaults` inside your development pod `RNMLKitCore`.
   You should run `pod update GoogleUtilities/UserDefaults` to apply changes you've made.

I am still getting this dependency issue error on pod install.

I followed this steps mentioned here and this are my conclusions:

  1. Placed pod 'GoogleDataTransport', '~> 10.0' pod 'GoogleUtilities', '~> 8.0' in my podfile but still getting the same error as mentioned above
  2. Not using expo project, so this is not a feasible option.
  3. I can not downgrade the versions of available react-native-firebase packages as they are mandatory for the project

can someone please help me with this and check if there is any new version available from google which can resolve this dependency issue or help me to fix this for temporarily if possible!

Thank you 🙏 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions