Skip to content

❌ pod install fails due to conflicting GoogleMLKit/MLKitCore versions #51

@JASIM0021

Description

@JASIM0021

πŸ› Bug Report

pod install fails in the ios directory due to incompatible versions of GoogleMLKit/MLKitCore.

❗ Error Output

⚠️  Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: CocoaPods could not find compatible versions for pod "GoogleMLKit/MLKitCore":
  In snapshot (Podfile.lock):
    GoogleMLKit/MLKitCore (= 3.2.0)

  In Podfile:
    react-native-mlkit-ocr (from `../node_modules/react-native-mlkit-ocr`) was resolved to 0.3.0, which depends on
      GoogleMLKit/TextRecognition (= 2.6.0) was resolved to 2.6.0, which depends on
        GoogleMLKit/MLKitCore (= 2.6.0)

You have either:
 * changed the constraints of dependency `GoogleMLKit/MLKitCore` inside your development pod `react-native-mlkit-ocr`.
   You should run `pod update GoogleMLKit/MLKitCore` to apply changes you've made.

pod install --repo-update --ansi exited with non-zero code: 1

πŸ“¦ Environment

  • Library version: [email protected]
  • iOS environment with CocoaPods
  • Podfile.lock references: GoogleMLKit/MLKitCore (= 3.2.0)

πŸ”§ Steps to Reproduce

  1. Install the package via npm/yarn.
  2. Navigate to the ios folder.
  3. Run pod install.

🧩 Possible Fix

Looks like the version of GoogleMLKit/MLKitCore required by GoogleMLKit/TextRecognition (2.6.0) is incompatible with what's in the lockfile (3.2.0).

A resolution might involve:

  • Updating react-native-mlkit-ocr to support the latest GoogleMLKit versions.
  • Or guidance on how to downgrade MLKitCore cleanly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions