RN接入OC执行pod install报错

2019-05-31  本文已影响0人  大师的书

报错信息为:

[!] CocoaPods could not find compatible versions for pod "React/Core":
  In Podfile:
    React/Core (from `./RNModule/node_modules/react-native`)

Specs satisfying the `React/Core (from `./RNModule/node_modules/react-native`)` dependency were found, but they required a higher minimum deployment target.

这里说React/Core需要依赖更高的系统版本,出现这个错误可以进node_modules/react-native找到React.podspec文件查看,会看到这么一行s.platforms = { :ios => "9.0", :tvos => "9.2" }说明iOS版本最低要求9.0,调整到9.0即可

上一篇 下一篇

猜你喜欢

热点阅读