我正在使用多个防火墙服务在我的反应本机项目。现在我试着加入破折主义
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",我发现对同一个问题进行了多次讨论,但没有任何帮助。我改变了平台:ios,'12.1‘到平台:ios,'13.0’在pod文件中。Pod更新和pod安装命令也没有帮助。
发布于 2022-11-09 12:40:20
请检查以下方法是否有效
删除ios/Podfile.lock
pod install --repo-update命令.https://stackoverflow.com/questions/74374899
复制相似问题