我在我的 react native 專案中使用了多個 firebase 服務。現在我嘗試添加 crashlytics
yarn add @react-native-firebase/crashlytics
但我得到一個錯誤
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In snapshot (Podfile.lock):
Firebase/CoreOnly (= 8.12.1)
In Podfile:
RNFBApp (from `../node_modules/@react-native-firebase/app`) was resolved to 16.4.3, which depends on
Firebase/CoreOnly (= 10.1.0)
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* changed the constraints of dependency `Firebase/CoreOnly` inside your development pod `RNFBApp`.
You should run `pod update Firebase/CoreOnly` to apply changes you've made.
這就是我的 package.json 的樣子
"@react-native-firebase/app": "^16.4.3",
"@react-native-firebase/auth": "^14.5.0",
"@react-native-firebase/crashlytics": "^16.4.3",
"@react-native-firebase/database": "^14.9.3",
"@react-native-firebase/dynamic-links": "^16.4.3",
"@react-native-firebase/firestore": "^14.5.1",
"@react-native-firebase/messaging": "^16.4.3",
"@react-native-firebase/storage": "^14.9.0",
我發現多次討論同一個問題,但沒有任何幫助。我在 pod 檔案中將平臺:ios,'12.1' 更改為平臺:ios,'13.0'。Pod update 和 pod install 命令也沒有幫助。
uj5u.com熱心網友回復:
請檢查以下方法是否有效
- 洗掉
ios/Podfile.lock - 運行
pod install --repo-update命令。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/531165.html
標籤:反应式崩溃分析
上一篇:如何向本機導航標題添加高度
