我正试图在我以前安装过的应用程序中安装Firebase In-App消息传递组件,下面是在安装应用程序内消息传递之前,我的package.json用于防火墙的样子。
"@react-native-firebase/analytics": "^6.7.1",
"@react-native-firebase/app": "^6.7.1",
"@react-native-firebase/crashlytics": "^6.7.1",
"@react-native-firebase/dynamic-links": "^6.7.1",
"@react-native-firebase/messaging": "^6.7.1",所以我决定
npm install --save @react-native-firebase/in-app-messaging@^6.7.1
当我尝试pod install时,我得到以下错误:
CocoaPods could not find compatible versions for pod "GoogleDataTransportCCTSupport":
In snapshot (Podfile.lock):
GoogleDataTransportCCTSupport (= 3.0.0, ~> 3.0)
In Podfile:
RNFBInAppMessaging (from `../node_modules/@react-native-firebase/in-app-messaging`) was resolved to 6.7.1, 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)
RNFBMessaging (from `../node_modules/@react-native-firebase/messaging`) was resolved to 6.7.1, which depends on
Firebase/Messaging (~> 6.13.0) was resolved to 6.13.0, which depends on
FirebaseMessaging (~> 4.1.9) was resolved to 4.1.10, which depends on
FirebaseCore (~> 6.2) was resolved to 6.4.0, which depends on
FirebaseCoreDiagnostics (~> 1.0) was resolved to 1.2.4, which depends on
GoogleDataTransportCCTSupport (~> 3.0)我是不是漏掉了什么?
发布于 2020-06-30 19:11:30
CocoaPods无法为pod“GoogleDataTransportCCTSupport”找到兼容的版本。复本
之所以发生这种情况,显然是因为您使用的是不推荐的firebase 5.x.x。在坚果壳中,您需要进行上述问题中推荐的工作。
或者升级到firebase 6.x.x
发布于 2020-06-30 21:05:08
pod install发布于 2020-06-30 19:29:49
看来你的文件里可能有冲突。删除您的podfile并运行pod install --repo-update在这里可能会有所帮助。另外,请确保您没有从旧版本中遗留下来的任何火药库(请参阅这里)。
https://stackoverflow.com/questions/62664493
复制相似问题