我已按照以下指南安装了Firebase In App Messaging:https://rnfirebase.io/in-app-messaging/usage
当我运行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.
我尝试了一些事情,包括pod install --repo-update
,但没有帮助。
答案 0 :(得分:2)
将pod 'FirebaseCoreDiagnostics', '1.2.1'
添加到Podfile中可能是一种解决方法,因为podspec仅需要GoogleDataTransportCCTSupport 1.x。
那些Firebase版本已有几个月的历史了-因此另一种方法是鼓励React Native更新包装器。