What happened?
@react-native-ml-kit/text-recognition@2.0.0 pins all Google ML Kit iOS dependencies to 8.0.0 in RNMLKitTextRecognition.podspec:
s.dependency 'GoogleMLKit/TextRecognition', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionChinese', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionDevanagari', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionJapanese', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionKorean', '8.0.0'
In our app we also use react-native-vision-camera-face-detector@2.0.6, which depends on:
s.dependency "GoogleMLKit/FaceDetection", "9.0.0"
Because GoogleMLKit pods must resolve to a single major version, pod install fails with a CocoaPods version conflict: Text Recognition requires GoogleMLKit/* = 8.0.0 while Face Detection requires GoogleMLKit/* = 9.0.0.
Expected:
@react-native-ml-kit/text-recognition should depend on GoogleMLKit/* 9.0.0 (or use a flexible constraint like ~> 9.0) so it can coexist with other ML Kit consumers that already require v9.
Current workaround:
We apply a Yarn patch that bumps every GoogleMLKit dependency in the podspec from 8.0.0 → 9.0.0. After that, pod install succeeds and text recognition works.
s.dependency 'GoogleMLKit/TextRecognition', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionChinese', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionDevanagari', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionJapanese', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionKorean', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognition', '9.0.0'
s.dependency 'GoogleMLKit/TextRecognitionChinese', '9.0.0'
s.dependency 'GoogleMLKit/TextRecognitionDevanagari', '9.0.0'
s.dependency 'GoogleMLKit/TextRecognitionJapanese', '9.0.0'
s.dependency 'GoogleMLKit/TextRecognitionKorean', '9.0.0'
Please release an official update so consumers don’t need a local patch.
Typical CocoaPods error (without the patch):
[!] CocoaPods could not find compatible versions for pod "GoogleMLKit/MLKitCore":
In Podfile:
RNMLKitTextRecognition (from ../node_modules/@react-native-ml-kit/text-recognition) was resolved to 2.0.0, which depends on
GoogleMLKit/TextRecognition (= 8.0.0) was resolved to 8.0.0, which depends on
GoogleMLKit/MLKitCore (= 8.0.0)
VisionCameraFaceDetector (from ../node_modules/react-native-vision-camera-face-detector) was resolved to 2.0.6, which depends on
GoogleMLKit/FaceDetection (= 9.0.0) was resolved to 9.0.0, which depends on
GoogleMLKit/MLKitCore (= 9.0.0)
Version
@react-native-ml-kit/barcode-scanning: N/A @react-native-ml-kit/face-detection: N/A @react-native-ml-kit/identify-languages: N/A @react-native-ml-kit/image-labeling: N/A @react-native-ml-kit/text-recognition: 2.0.0 @react-native-ml-kit/translate-text: N/A
Which ML Kit packages do you use?
What platforms are you seeing this issue on?
System Information
System:
OS: macOS 26.5.2
CPU: (10) arm64 Apple M1 Pro
Memory: 416.83 MB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.22.0
path: /Users/isyniuk/.nvm/versions/node/v22.22.0/bin/node
Yarn:
version: 4.17.0
path: /Users/isyniuk/.nvm/versions/node/v22.22.0/bin/yarn
npm:
version: 11.12.0
path: /Users/isyniuk/.nvm/versions/node/v22.22.0/bin/npm
Watchman:
version: 2024.11.04.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.5
- iOS 26.5
- macOS 26.5
- tvOS 26.5
- visionOS 26.5
- watchOS 26.5
Android SDK: Not Found
IDEs:
Android Studio: 2025.3 AI-253.31033.145.2533.15113396
Xcode:
version: 26.6/17F113
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.13
path: /usr/bin/javac
Ruby:
version: 3.3.6
path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.1.0
wanted: 20.1.0
react:
installed: 19.2.3
wanted: 19.2.3
react-native:
installed: 0.86.0
wanted: 0.86.0
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Steps to Reproduce
- Create a React Native 0.86 app.
- Install:
- @react-native-ml-kit/text-recognition@2.0.0
- react-native-vision-camera-face-detector@2.0.6 (or any other pod that depends on GoogleMLKit/* = 9.0.0)
- Run cd ios && pod install
- Observe CocoaPods failing to resolve GoogleMLKit/MLKitCore (8.0.0 vs 9.0.0).
- Apply the podspec bump to 9.0.0 → pod install succeeds.
What happened?
@react-native-ml-kit/text-recognition@2.0.0 pins all Google ML Kit iOS dependencies to 8.0.0 in RNMLKitTextRecognition.podspec:
s.dependency 'GoogleMLKit/TextRecognition', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionChinese', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionDevanagari', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionJapanese', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionKorean', '8.0.0'
In our app we also use react-native-vision-camera-face-detector@2.0.6, which depends on:
s.dependency "GoogleMLKit/FaceDetection", "9.0.0"
Because GoogleMLKit pods must resolve to a single major version, pod install fails with a CocoaPods version conflict: Text Recognition requires GoogleMLKit/* = 8.0.0 while Face Detection requires GoogleMLKit/* = 9.0.0.
Expected:
@react-native-ml-kit/text-recognition should depend on GoogleMLKit/* 9.0.0 (or use a flexible constraint like ~> 9.0) so it can coexist with other ML Kit consumers that already require v9.
Current workaround:
We apply a Yarn patch that bumps every GoogleMLKit dependency in the podspec from 8.0.0 → 9.0.0. After that, pod install succeeds and text recognition works.
s.dependency 'GoogleMLKit/TextRecognition', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionChinese', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionDevanagari', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionJapanese', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognitionKorean', '8.0.0'
s.dependency 'GoogleMLKit/TextRecognition', '9.0.0'
s.dependency 'GoogleMLKit/TextRecognitionChinese', '9.0.0'
s.dependency 'GoogleMLKit/TextRecognitionDevanagari', '9.0.0'
s.dependency 'GoogleMLKit/TextRecognitionJapanese', '9.0.0'
s.dependency 'GoogleMLKit/TextRecognitionKorean', '9.0.0'
Please release an official update so consumers don’t need a local patch.
Typical CocoaPods error (without the patch):
[!] CocoaPods could not find compatible versions for pod "GoogleMLKit/MLKitCore":
In Podfile:
RNMLKitTextRecognition (from
../node_modules/@react-native-ml-kit/text-recognition) was resolved to 2.0.0, which depends onGoogleMLKit/TextRecognition (= 8.0.0) was resolved to 8.0.0, which depends on
GoogleMLKit/MLKitCore (= 8.0.0)
VisionCameraFaceDetector (from
../node_modules/react-native-vision-camera-face-detector) was resolved to 2.0.6, which depends onGoogleMLKit/FaceDetection (= 9.0.0) was resolved to 9.0.0, which depends on
GoogleMLKit/MLKitCore (= 9.0.0)
Version
@react-native-ml-kit/barcode-scanning: N/A @react-native-ml-kit/face-detection: N/A @react-native-ml-kit/identify-languages: N/A @react-native-ml-kit/image-labeling: N/A @react-native-ml-kit/text-recognition: 2.0.0 @react-native-ml-kit/translate-text: N/A
Which ML Kit packages do you use?
What platforms are you seeing this issue on?
System Information
System:
OS: macOS 26.5.2
CPU: (10) arm64 Apple M1 Pro
Memory: 416.83 MB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.22.0
path: /Users/isyniuk/.nvm/versions/node/v22.22.0/bin/node
Yarn:
version: 4.17.0
path: /Users/isyniuk/.nvm/versions/node/v22.22.0/bin/yarn
npm:
version: 11.12.0
path: /Users/isyniuk/.nvm/versions/node/v22.22.0/bin/npm
Watchman:
version: 2024.11.04.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.5
- iOS 26.5
- macOS 26.5
- tvOS 26.5
- visionOS 26.5
- watchOS 26.5
Android SDK: Not Found
IDEs:
Android Studio: 2025.3 AI-253.31033.145.2533.15113396
Xcode:
version: 26.6/17F113
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.13
path: /usr/bin/javac
Ruby:
version: 3.3.6
path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.1.0
wanted: 20.1.0
react:
installed: 19.2.3
wanted: 19.2.3
react-native:
installed: 0.86.0
wanted: 0.86.0
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Steps to Reproduce