简体   繁体   English

CocoaPods 找不到 pod“GoogleDataTransportCCTSupport”的兼容版本

[英]CocoaPods could not find compatible versions for pod “GoogleDataTransportCCTSupport”

I've installed Firebase In App Messaging according to the guide: https://rnfirebase.io/in-app-messaging/usage我已经根据指南在应用程序消息中安装了 Firebase: https://rnfirebase.io/in-app-messaging/usage

When I run pod install , I get this:当我运行pod install时,我得到了这个:

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.我尝试了一些方法,包括pod install --repo-update但没有任何帮助。

Adding pod 'FirebaseCoreDiagnostics', '1.2.1' to the Podfile might be a workaround since that podspec only needs GoogleDataTransportCCTSupport 1.x.pod 'FirebaseCoreDiagnostics', '1.2.1'添加到 Podfile 可能是一种解决方法,因为该podspec只需要 GoogleDataTransportCCTSupport 1.x。

Those Firebase versions are several months old - so another approach would be to encourage React Native to update the wrappers.那些 Firebase 版本已经有几个月的历史了——所以另一种方法是鼓励 React Native 更新包装器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM