CocoaPods 找不到 pod "RNDateTimePicker" 的兼容版本
Posted
技术标签:
【中文标题】CocoaPods 找不到 pod "RNDateTimePicker" 的兼容版本【英文标题】:CocoaPods could not find compatible versions for pod "RNDateTimePicker" 【发布时间】:2021-09-23 11:55:39 【问题描述】:when I start pod install the result :
CocoaPods could not find compatible versions for pod "RNDateTimePicker":
In Podfile:
RNDateTimePicker (from `../node_modules/@react-native-community/datetimepicker`)
Specs satisfying the `RNDateTimePicker (from `../node_modules/@react-native-community/datetimepicker`)` dependency were found, but they required a higher minimum deployment target.
在我的 package.json 的下面部分
"name": "NassauTennisMobileApp", “版本”:“0.0.1”, “私人”:真的, “脚本”: "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", “测试”:“开玩笑”, “lint”:“eslint”。 , “依赖”: "@react-native-community/async-storage": "^1.10.1", "@react-native-community/checkbox": "^0.4.1", "@react-native-community/datetimepicker": "^3.0.0", "@react-native-community/masked-view": "^0.1.10", "@react-native-community/toolbar-android": "0.1.0-rc.2", "@react-native-picker/picker": "^1.16.3", "@react-navigation/bottom-tabs": "^5.4.4", "@react-navigation/drawer": "^5.7.4", "@react-navigation/material-top-tabs": "^5.2.4", "@react-navigation/native": "^5.3.2", "@react-navigation/stack": "^5.3.5", "3.0.0": "^3.0.0", "指示性": "^7.4.4", "链接": "^0.1.5", “时刻”:“^2.27.0”, “本地基础”:“^2.13.12”, “反应”:“16.11.0”, “反应原生”:“^0.62.2”, "react-native-datepicker": "^1.7.2", “反应原生元素”:“^2.2.1”, "react-native-gesture-handler": "^1.6.1", "react-native-material-dropdown": "^0.11.1", “反应原生材料菜单”:“^1.1.3”, "react-native-modal-datetime-picker": "^10.1.0", "react-native-paper": "^4.0.1", "react-native-picker-select": "^8.0.4", "react-native-reanimated": "^1.8.0", "react-native-responsive-fontsize": "^0.5.0", "react-native-responsive-screen": "^1.4.2", "react-native-safe-area-context": "^1.0.0", “反应原生屏幕”:“^2.7.0”, "react-native-select-multiple": "^2.1.0", "react-native-simple-radio-button": "^2.7.4", "react-native-tab-view": "^2.14.0", "react-native-vector-icons": "^6.7.0", "react-native-webview": "^10.8.3", “反应数字格式”:“^4.4.1”, "react-redux": "^7.2.3", “还原”:“^4.0.5” , “开发依赖”: "@babel/core": "7.9.6", "@babel/runtime": "7.9.6", "@react-native-community/eslint-config": "0.0.5", "babel-jest": "24.9.0", “eslint”:“6.8.0”, “笑话”:“24.9.0”, “metro-react-native-babel-preset”:“0.58.0”, “反应测试渲染器”:“16.11.0” , “开玩笑”: “预设”:“反应原生”
任何人都可以帮助我如何安装 POD 请帮忙
【问题讨论】:
【参考方案1】:节点模块-> @react-native-community -> datetimepicker-> RNDateTimePicker.podspec
找到包含此代码的行
s.platform = '10.0'
或任何版本
并像这样将其更改为您当前的部署目标版本,
s.platform = '9.0'
【讨论】:
【参考方案2】:就我而言:我刚刚在我的 Podfile 中更改了这一行:
platform :ios, '9.0'
-> platform :ios, '10.0'
【讨论】:
以上是关于CocoaPods 找不到 pod "RNDateTimePicker" 的兼容版本的主要内容,如果未能解决你的问题,请参考以下文章
CocoaPods 找不到 pod“Capacitor”的兼容版本
Flutter:CocoaPods 找不到 pod“Firebase/Messaging”的兼容版本
CocoaPods 找不到 pod“UMCore”的兼容版本
Flutter CocoaPods 找不到 pod“FirebaseCore”的兼容版本
pod 安装时出现 Flutter 错误:CocoaPods 找不到 pod“Firebase/CoreOnly”的兼容版本