I’m encountering an issue with pod install failing due to a GoogleDataTransport version conflict between the libraries @react-native-firebase/messaging and react-native-vision-camera-ocr-plus.
Environment:
react: 19.1.0
react-native: 0.81.1
@react-native-firebase/app: ^24.0.0
@react-native-firebase/messaging: ^24.0.0
react-native-vision-camera-ocr-plus: ^1.2.4
Issue:
When I run pod install in my iOS project, I get the following error message:
_[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
In Podfile:
RNFBMessaging (from `../node_modules/@react-native-firebase/messaging`) was resolved to 24.0.0, which depends on
Firebase/Messaging (= 12.10.0) was resolved to 12.10.0, which depends on
FirebaseMessaging (~> 12.10.0) was resolved to 12.10.0, which depends on
GoogleDataTransport (~> 10.1)
RNVisionCameraOCR (from `../node_modules/react-native-vision-camera-ocr-plus`) was resolved to 1.2.4, which depends on
GoogleMLKit/TextRecognitionKorean was resolved to 2.3.0, which depends on
MLKitTextRecognitionKorean (~> 1.0.0-beta1) was resolved to 1.0.0-beta1, which depends on
MLKitCommon (~> 3.1) was resolved to 3.1.0, which depends on
GoogleDataTransport (~> 9.0)_
As you can see,
@react-native-firebase/messaging requires GoogleDataTransport (> 10.1),
but react-native-vision-camera-ocr-plus depends on GoogleDataTransport (> 9.0),
leading to the conflict when running pod install.
Attempted Solution:
I added the following to my Podfile in an attempt to resolve the conflict by targeting iOS 16+ since react-native-vision-camera-ocr-plus uses ML Kit 8, which is compatible with Firebase and GoogleDataTransport 10:
platform :ios, '16.0'
Request:
Is there a cleaner way to resolve this conflict without needing to change the iOS version requirement in the Podfile?
Are there any planned updates to react-native-vision-camera-ocr-plus to support the newer GoogleDataTransport 10.1 version?
What’s the best way to handle this issue while using both @react-native-firebase/messaging and react-native-vision-camera-ocr-plus together?
I’m encountering an issue with pod install failing due to a GoogleDataTransport version conflict between the libraries @react-native-firebase/messaging and react-native-vision-camera-ocr-plus.
Environment:
Issue:
When I run pod install in my iOS project, I get the following error message:
As you can see,
@react-native-firebase/messaging requires GoogleDataTransport (
> 10.1),> 9.0),but react-native-vision-camera-ocr-plus depends on GoogleDataTransport (
leading to the conflict when running pod install.
Attempted Solution:
I added the following to my Podfile in an attempt to resolve the conflict by targeting iOS 16+ since react-native-vision-camera-ocr-plus uses ML Kit 8, which is compatible with Firebase and GoogleDataTransport 10:
platform :ios, '16.0'Request:
Is there a cleaner way to resolve this conflict without needing to change the iOS version requirement in the Podfile?
Are there any planned updates to react-native-vision-camera-ocr-plus to support the newer GoogleDataTransport 10.1 version?
What’s the best way to handle this issue while using both @react-native-firebase/messaging and react-native-vision-camera-ocr-plus together?
React Native FirebaseandInvertaseon Twitter for updates on the library.