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 - mutex.h

See original GitHub issue

Environment

React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: (4) x64 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
      Memory: 7.40 GB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.13.0 - /usr/local/bin/node
      Yarn: 1.12.3 - /usr/local/bin/yarn
      npm: 6.4.1 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
    IDEs:
      Xcode: 10.0/10A255 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.1 => 16.6.1
      react-native: 0.57.5 => 0.57.5
    npmGlobalPackages:
      react-native-cli: 2.0.1

Description

As mentioned here, this must be fixed but i’m getting this error after using react-native init MyTestProject.

Reproducible Demo

Simply use react-native init MyTestProject and you will get this error! Also, i tried to set the Project Settings to Legacy Build System and cleaned the build folder but no result!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
TRIPTI-JAINcommented, May 13, 2019

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

5reactions
MohamadKh75commented, Nov 15, 2018

Am also facing same issue can someone help me to resolve this

As a temporary fix, you could navigate to ..\node_modules\react-native\third-party\glog-0.3.5 and:

./configure
make
Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Error config.h file not found mutex.h During Archive
This error happens when glog is not configured properly in your React Native Project. To solve this error follow the steps below. Step...
Read more >
Mattermost app Error in mutex.h file: Config.h file not found ...
I am getting this error "config.h file not found" in mutex.h file. I am using MacOS High sierra 10.13.6 and Xcode 10.1. In...
Read more >
[Solved]-Mattermost app Error in mutex.h file - appsloveworld
Coding example for the question Mattermost app Error in mutex.h file: Config.h file not found Xcode 10.1.
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 create...
Read more >
React Native Error: 'event2/event-config.h' file not found - cpming
Delete the Flipper module. Delete or comment the following lines in the Podfile file. If the AppDelegate.m file also has related Flipper code, ......
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