react-native config.h is not found

Posted mooniitt

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了react-native config.h is not found相关的知识,希望对你有一定的参考价值。

Running into the same issue here after upgrading from 0.44. None of the above solutions or clearing caches did the trick for me. Here‘s what I did to get things working again:

  • In the Terminal, navigate to the react-native/third-party/glog folder inside node_modules (for me, this was cd node_modules/react-native/third-party/glog-0.3.4)
  • Once actively in this folder, run ../../scripts/ios-configure-glog.sh
  • Glog is configured and the required config.h header file is created for Xcode to find
  • cd node_modules/react-native/third-party/glog-0.3.4 && ../../scripts/ios-configure-glog.sh && cd ../../../..

以上是关于react-native config.h is not found的主要内容,如果未能解决你的问题,请参考以下文章

在React native的iOS项目中找不到“config.h”文件

未找到 config.h 文件

词法或预处理器问题 - 未找到 event2/event-config.h 文件

react-native, jest, ts-jest: ReferenceError: React is not defined

在 React-Native/Expo 移动应用程序上设置 Detox 时出错:“ReferenceError: element is not defined”

Metro server (run ‘react-native start‘) or that your bundle ‘index.android.bundle‘ is packaged corre