问题描述
我已按照以下指南在应用消息中安装了Firebase:
I've installed Firebase In App Messaging according to the guide: https://rnfirebase.io/in-app-messaging/usage
当我运行 pod install
时,我得到了:
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.
我尝试了一些操作,包括 pod install --repo-update
,但无济于事。
I've tried a few things including pod install --repo-update
but nothing helps.
推荐答案
添加 pod'FirebaseCoreDiagnostics','1.2 .1'
到Podfile可能是一种解决方法,因为仅需要GoogleDataTransportCCTSupport 1.x。
Adding pod 'FirebaseCoreDiagnostics', '1.2.1'
to the Podfile might be a workaround since that podspec only needs GoogleDataTransportCCTSupport 1.x.
这些Firebase版本需要几个月的时间-另一方法是鼓励React Native更新包装器。
Those Firebase versions are several months old - so another approach would be to encourage React Native to update the wrappers.
这篇关于CocoaPods找不到Pod“ GoogleDataTransportCCTSupport”的兼容版本。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!