CocoaPods could not find compatible versions for pod "GoogleDataTransportCCTSupport" - ios

I've installed Firebase In App Messaging according to the guide: https://rnfirebase.io/in-app-messaging/usage
When I run pod install, I get this:
Using firebase.json from '/../app/firebase.json'
Adding a custom script phase for Pod RNFBApp: [RNFB] Core Configuration
Adding a custom script phase for Pod RNFBCrashlytics: [RNFB] Crashlytics Configuration
Detected React Native module pods for RNFBAnalytics, RNFBApp, RNFBCrashlytics, RNFBDynamicLinks, and RNFBInAppMessaging
Updating local specs repositories
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "GoogleDataTransportCCTSupport":
In snapshot (Podfile.lock):
GoogleDataTransportCCTSupport (= 2.0.2, ~> 2.0)
In Podfile:
RNFBInAppMessaging (from `../node_modules/#react-native-firebase/in-app-messaging`) was resolved to 6.4.0, which depends on
Firebase/InAppMessaging (~> 6.13.0) was resolved to 6.13.0, which depends on
Firebase/CoreOnly (= 6.13.0) was resolved to 6.13.0, which depends on
FirebaseCore (= 6.4.0) was resolved to 6.4.0, which depends on
FirebaseCoreDiagnostics (~> 1.0) was resolved to 1.2.3, which depends on
GoogleDataTransportCCTSupport (~> 2.0)
RNFBInAppMessaging (from `../node_modules/#react-native-firebase/in-app-messaging`) was resolved to 6.4.0, which depends on
Firebase/InAppMessaging (~> 6.13.0) was resolved to 6.13.0, which depends on
FirebaseInAppMessaging (~> 0.15.5) was resolved to 0.15.6, which depends on
GoogleDataTransportCCTSupport (~> 1.0)
You have either:
* changed the constraints of dependency `GoogleDataTransportCCTSupport` inside your development pod `RNFBInAppMessaging`.
You should run `pod update GoogleDataTransportCCTSupport` to apply changes you've made.
I've tried a few things including pod install --repo-update but nothing helps.

Adding pod 'FirebaseCoreDiagnostics', '1.2.1' to the Podfile might be a workaround since that podspec only needs GoogleDataTransportCCTSupport 1.x.
Those Firebase versions are several months old - so another approach would be to encourage React Native to update the wrappers.

Related

Error: CocoaPods could not find compatible versions for pod "FBSDKCoreKit"

I am trying to build a simple Cordova app for iOS, but running pod install fails with the following error:
[!] CocoaPods could not find compatible versions for pod "FBSDKCoreKit":
In Podfile:
CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.4.2, which depends on
FBSDKCoreKit (= 5.15.0)
CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.4.2, which depends on
FBSDKShareKit (= 5.15.0) was resolved to 5.15.0, which depends on
FBSDKShareKit/Share (= 5.15.0) was resolved to 5.15.0, which depends on
FBSDKCoreKit (~> 5.0)
As far as I understand, FBSDKCoreKit (~> 5.0) should actually match = 5.15.0 so it looks like CocoaPods fails to figure this out.
How do I troubleshoot this?
CocoaPods: 1.10.0

CocoaPods could not find compatible versions for pod GoogleDataTransport when installing GoogleMLKit Face Detection

So I tried to install ML Kit Face Detection library by following this documentation, so first I added this line in my podfile:
pod 'GoogleMLKit/FaceDetection'
Unfortunately after I tried to install it I got this error on terminal:
[!] CocoaPods could not find compatible versions for pod "GoogleDataTransportCCTSupport": In snapshot (Podfile.lock):
GoogleDataTransportCCTSupport (= 2.0.1, ~> 2.0)
In Podfile:
GoogleMLKit/FaceDetection was resolved to 0.60.0, which depends on
GoogleMLKit/MLKitCore (= 0.60.0) was resolved to 0.60.0, which depends on
MLKitCommon (~> 0.60.0) was resolved to 0.60.0, which depends on
GoogleDataTransportCCTSupport (~> 1.2)
Specs satisfying the `GoogleDataTransportCCTSupport (= 2.0.1, ~> 2.0), GoogleDataTransportCCTSupport (~> 1.2)` dependency were found, but they required a higher minimum deployment target.
And I added more pod like this:
pod 'MLKitCommon'
pod 'GoogleMLKit/MLKitCore'
But now I got this error on the terminal:
[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
In snapshot (Podfile.lock):
GoogleDataTransport (= 5.1.0, ~> 5.1)
In Podfile:
GoogleMLKit/MLKitCore was resolved to 0.60.0, which depends on
MLKitCommon (~> 0.60.0) was resolved to 0.60.0, which depends on
GoogleDataTransport (~> 3.2)
Specs satisfying the `GoogleDataTransport (= 5.1.0, ~> 5.1), GoogleDataTransport (~> 3.2)` dependency were found, but they required a higher minimum deployment target.
After a bit of research I tried to run pod install --repo-update but it still give me that error. Is there anyway to resolve this?
This fixed the problem for me:
pod deintegrate
sudo gem install cocoapods-clean
pod clean
pod setup
pod install
I deleted Podfile.lock and ran pod install. Worked.
The above two methods did not work for me. I was using Firebase "cloud_firestore: 2.2.0" with "google_ml_kit: ^0.6.0". Turns out cloud firestore(2.2.0) requires FirebaseSDK version 8.0.0. I had to downgrade to 2.0.0 and pasted "$FirebaseSDKVersion = '7.11.0'" at the start of my podfile at ios/Podfile. Here's a link to the issue.

Cannot update pod due to dependencies in React Native module

I am trying to update SnowplowTracker of our app. I changed the version of SnowplowTracker on my PodFile:
pod 'SnowplowTracker', '~> 1.3'
However I am getting this error when I run my pod install:
[!] CocoaPods could not find compatible versions for pod "SnowplowTracker":
In Podfile:
RNVideo (from `../node_modules/react-native-video`) was resolved to 3.9.2, which depends on
MCTracker (~> 1.1.0) was resolved to 1.1.0, which depends on
SnowplowTracker (= 1.1.4)
SnowplowTracker (~> 1.3)
Specs satisfying the `SnowplowTracker (~> 1.3), SnowplowTracker (= 1.1.4)` dependency were found, but they required a higher minimum deployment target.
How can I solve this problem?
Thank you

Is there a way to resolved CocoaPod dependency issue? (WebexSDK + Socket.IO)

I have a project that uses both WebexSDK and SocketIO, when i'm trying to add both via Cocoapods i'm getting the following error:
CocoaPods could not find compatible versions for pod "Starscream":
In snapshot (Podfile.lock):
Starscream (= 4.0.0)
In Podfile:
Socket.IO-Client-Swift (~> 15.2.0) was resolved to 15.2.0, which depends on
Starscream (~> 3.1)
WebexSDK (~> 2.5.0) was resolved to 2.5.0, which depends on
Starscream (= 4.0.0)
Specs satisfying the Starscream (= 4.0.0), Starscream (= 4.0.0), Starscream (~> 3.1) dependency were found, but they required a higher minimum deployment target.
My pod file:
pod 'WebexSDK', '~> 2.5.0'
pod 'Socket.IO-Client-Swift', '~> 15.2.0'
thanks for the help
Cocoapods can't resolve this conflict. If you absolutely need both of these libraries, you will need to change at least one of them to regain compatibility (or wait for the respective authors to do so).

Cocoapods could not find compatible versions for pod from several frameworks

I received this error log when pod install.
[!] CocoaPods could not find compatible versions for pod "RxSwift":
In snapshot (Podfile.lock):
RxSwift (= 4.1.2, ~> 4.0)
In Podfile:
FrameworkA (~> 4.0) was resolved to 4.0.4, which depends on
RxSwift (~> 4.0)
FrameworkB (~> 1.0) was resolved to 1.0.4, which depends on
RxSwift (~> 3.0)
I understand what is problem. because of two frameworks are needed same library but different versions. (... right?)
But I must use that versions that FrameworkA is ~> 4.0 and FrameworkB is ~> 1.0.
What are the solutions in my case?

Resources