美文网首页
react native 中glog出错

react native 中glog出错

作者: 四月白绵羊 | 来源:发表于2019-07-16 22:03 被阅读0次

    在有些版本的react ntive下面,当运行npm install之后准备运行iOS工程的时候,可能会遇到一下两种编译错误:

    1. 'config.h' file not found
    2. 'glog/logging.h' file not found

    这两个错误都是和react native 中的glog文件有关,原因可能是没有配置完全。
    解决办法的完整流程是:

    1. cdnode_modules/react-native下面,如果没有发现third-party目录。就运行 ./scripts/ios-install-third-party.sh, 安装第三方库。
    2. third-party 存在的情况下,cd./third-party/glog-0.3.5目录下,运行../../scripts/ios-configure-glog.sh

    如此之后,你就能在glog-0.3.5目录下面发现config.hlogging.h 文件了。

    相关文章

      网友评论

          本文标题:react native 中glog出错

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