"config.h" file not found in iOS project of React native
Close Xcode.
Open Terminal, go to your project's root folder and run:
cd node_modules/react-native/third-party/glog-0.3.4/
Run the configure script:
./configure
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:
- In the Terminal, navigate to the
react-native/third-party/glog
folder inside node_modules (for me, this wascd node_modules/react-native/third-party/glog-0.3.4
) - Once actively in this folder, run
sh ../../scripts/ios-configure-glog.sh
Glog is configured and the required config.h header file is created for Xcode to find - 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