Rub*_*ta2 5 node.js reactjs react-native
我无法为 lottie-react-native CocoaPods 安装 react-native-lottie 抛出错误兼容版本找不到 pod“lottie-ios”的兼容版本
Rub*_*ta2 14
根据错误说我们需要去
npm i lottie-ios@3.1.8 lottie-react-native@3.5.0 cd ios Pod install
问题解决了
Cod*_*ker 11
如果你得到这样的东西,
[!] CocoaPods could not find compatible versions for pod "lottie-ios":
In Podfile:
lottie-ios (from `../node_modules/lottie-ios`)
lottie-react-native (from `../node_modules/lottie-react-native`) was resolved to 3.5.0, which depends on
lottie-ios (~> 3.1.8)
Run Code Online (Sandbox Code Playgroud)
那么我们可以通过以下步骤来解决,
在 React Native 项目的根文件夹中打开终端。
执行以下命令安装lottie-ios并lottie-react-native打包指定版本的cocoa pod报错。
npm install lottie-ios@3.1.8
npm install lottie-react-native@3.5.0
Run Code Online (Sandbox Code Playgroud)
添加这些包后,移动到 ios 文件夹并运行 pod install。
cd ios
pod install
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4200 次 |
| 最近记录: |