React Native无法Pod安装Firebase Crashlytics

时间:2020-05-04 04:45:47

标签: firebase react-native invertase

在Invertase Firebase Crashlytics设置(https://rnfirebase.io/crashlytics/ios-setup)期间,我不断遇到以下错误:

CocoaPods could not find compatible versions for pod "Firebase/Crashlytics"

或与Firebase/CoreFirebase/CoreOnly相关的其他变体

Podfile

pod 'Firebase/Core'
pod 'Firebase/CoreOnly'
pod 'Firebase/Analytics'
pod 'Firebase/Crashlytics'

即使我尝试通过~> 6.x.x将每个软件包设置为特定版本

相关节点模块

"@react-native-firebase/app": "^6.7.1",
"@react-native-firebase/crashlytics": "^6.7.1",
"@react-navigation/native": "^5.1.6",

1 个答案:

答案 0 :(得分:0)

react-native-firebase支持lib自动链接,这意味着您无需添加
手动在Podfile中安装Firebase Pod

响应对我有用,至少我没有错误
另外,我手动将其链接:

react-native link @react-native-firebase/crashlytics