【问题标题】:config.h file not found未找到 config.h 文件
【发布时间】:2018-09-14 11:02:57
【问题描述】:

我正在使用 react-native 平台。我正在使用 iOS。创建项目后,发现如下错误:

config.h 文件未找到 mutex.h

请帮我解决这个问题。

【问题讨论】:

  • 什么版本的 react native?是否是全新安装(没有第三方模块)?
  • 试试这个solution
  • 反应原生版本 0.56.0,我使用领域模块作为数据库。

标签: react-native react-native-ios


【解决方案1】:

对我有用的解决方案是:

  • 退出 Xcode

  • 导航到

    cd node_modules/react-native/third-party/glog-0.3.4/

  • 然后执行命令:

    ./configure && make && make install

  • 现在在 Xocde 中打开项目,构建并运行。

【讨论】:

    【解决方案2】:

    在项目目录中运行以下命令。帮助我解决了我的 config.h not found 问题

    1. cd node_modules/react-native/third-party/glog-0.3.4/
    2. ./配置
    3. 制作
    4. 进行安装
    5. cd ../../../..
    6. react-native run-ios

    【讨论】:

      猜你喜欢
      • 2019-10-17
      • 1970-01-01
      • 2019-04-07
      • 1970-01-01
      • 2018-11-22
      • 2019-04-26
      • 2021-10-04
      • 1970-01-01
      相关资源
      最近更新 更多