在我的react-native项目中,我有“boost-for-react-native”的依赖项并像这样安装它:
pod 'boost-for-react-native', :podspec => 'https://raw.githubusercontent.com/react-native-community/boost-for-react-native/master/boost-for-react-native.podspec'
最近运行良好。我不确定发生了什么变化,但我现在无法安装 Pod。当我运行 pod install 时收到此错误
[!] CocoaPods could not find compatible versions for pod "boost-for-react-native":
In Podfile:
Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) was resolved to 2018.10.22.00, which depends on
boost-for-react-native
React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) was resolved to 0.61.5, which depends on
boost-for-react-native (= 1.63.0)
boost-for-react-native (from `https://raw.githubusercontent.com/react-native-community/boost-for-react-native/master/boost-for-react-native.podspec`)
我尝试过删除node_modules、删除podfile.lock、分解pod。我还尝试将 podfile 和应用程序目标中的部署版本升级到 11.0。但我仍然收到上述错误。
我将非常感谢对此的任何帮助。谢谢
最佳答案
这可能是由于 Pod 缓存造成的。
试试这个:
- 删除 cocoa pod 缓存:
rm -rf ~/Library/Caches/CocoaPods
- 删除
Pods
文件夹和Podfile.lock
通常位于<project_root>/ios
. - 重新安装 Pod:
pod update
关于ios - CocoaPods 找不到 pod 的兼容版本 "boost-for-react-native",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66992632/