"config.h" file not found in iOS project of React native "config.h" file not found in iOS project of React native xcode xcode

"config.h" file not found in iOS project of React native


  1. Close Xcode.

  2. Open Terminal, go to your project's root folder and run:

    cd node_modules/react-native/third-party/glog-0.3.4/
  3. Run the configure script:

    ./configure
  4. Open Xcode and try to run your app.


I had the same issue, using this steps solves for me:

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:

  1. 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)
  2. Once actively in this folder, run sh ../../scripts/ios-configure-glog.shGlog is configured and the required config.h header file is created for Xcode to find
  3. Run your iOS BUILD

Regards!


When project files get messed up for me. I typically follow these steps.

rm -rf node_modulesnpm installreact-native upgrade (Only changing affected files, so IOS for you)react-native linknpm start --reset-cache(In another terminal)react-native run-ios