"config.h" file not found on a CI platform
See original GitHub issueFigthing 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:
-
I create a new RN project
react-native init aProject
-
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 thenpm 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:
- Created 6 years ago
- Comments:13
Top GitHub Comments
@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
Interesting. I actually just ran
react-native upgrade
and that fixed my issue