pod构建的ios版本引发 react-native-safe-area-context RN项目的pod-install构建异常

RN 使用react navigation的案例时运行pod-install报错

Auto-linking React Native modules for target `Entry_task_ts`: RNScreens and react-native-safe-area-context
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
[!] CocoaPods could not find compatible versions for pod "react-native-safe-area-context":
  In Podfile:
    react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)

Specs satisfying the `react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)` dependency were found, but they required a higher minimum deployment target.
Couldn't install Pods. Updating the Pods project and trying again...

看问题描述好像是react-native-safe-area-context这个包应用的问题,我在node_modules已经安装了这个包但是一直报错。
通过一番查找,发现是podfile配置的ios版本太低,react-native-safe-area-context最低版本是支持ios11.0。
但是我构建的版本是ios10.0,修改版本之后就可以正常构建了

解决问题地址:

react-native-safe-area-context/issues/246

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值