question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"config.h" file not found on a CI platform

See original GitHub issue

Figthing this issue for several RN versions, I still haven’t found a way to solve this. The main constraint is that I’m using a CI platform to build my apps where I can’t do manual tasks.

The issue:

  1. I create a new RN project react-native init aProject

  2. Push my code to the CI platform and request an iOS build Notice that the CI uses a fresh workspace at every build, so no need to rm -Rf node_modules before the npm i I also clean the .rncache at each build

Result : 3. Build failed because of "config.h" file not found from mutex.h

Important point

I do have the same issue locally but I use an ugly workaround by copying the glog-0.3.4 folder from a very old RN project…

Environment: OS: macOS Sierra 10.12 Node: 8.4.0 Yarn: 0.27.5 npm: 5.4.0 Watchman: 4.7.0 Xcode: Xcode 8.3

react-native: 0.48.3
react: 16.0.0-alpha.12

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13

github_iconTop GitHub Comments

58reactions
Stettinumcommented, Feb 12, 2018

@mweitzel2005 possible reference to https://github.com/facebook/react-native/issues/14382.

Ignigena answer : "**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**"

do the trick for me

if it does not help for you, you can remove third-party from /node_modules/react-native/ - it should help

6reactions
MiLeungcommented, Oct 24, 2017

Interesting. I actually just ran react-native upgrade and that fixed my issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native - config.h file not found - Stack Overflow
The solution works for me is: Quit your Xcode. Navigate to. cd node_modules/react-native/third-party/glog-0.3.4/. Then execute command:.
Read more >
Runner unable to create ios build as "'ruby/config.h' file not ...
h ' file not found" during "bundle install" I have created a runner on OSX 10.15. 7 with XCode 12.2 in order to...
Read more >
Project Configuration - ESP32 - — ESP-IDF Programming ...
h file in the build directory, and will make sdkconfig options available to the project build system and source files. Using sdkconfig.defaults ...
Read more >
Options - cibuildwheel - Read the Docs
This option is not available in the pyproject.toml config. Tip. You can use this option to locally debug your cibuildwheel config, instead of...
Read more >
config.h - Google Git
This header file defines a set of macros for checking the presence of ... There are platforms for which TLS should not be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found