美文网首页
RN接入OC执行pod install报错

RN接入OC执行pod install报错

作者: 大师的书 | 来源:发表于2019-05-31 15:06 被阅读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即可

    相关文章

      网友评论

          本文标题:RN接入OC执行pod install报错

          本文链接:https://www.haomeiwen.com/subject/lazwtctx.html