Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

In X-Code project of react native, getting error

config.h file not found.

Here is version detail :

react-native-cli: 2.0.1 react-native: 0.51.0 

How to solve it?

like image 306
Jagdeep Singh Avatar asked Dec 29 '17 07:12

Jagdeep Singh


People also ask

Can I open react native project in Xcode?

npx react-native run-ios is one way to run your app. You can also run it directly from within Xcode.

What is react-native-config JS?

React Native CLI has a configuration mechanism that allows changing its behavior and providing additional features. React Native CLI can be configured by creating a react-native. config. js at the root of the project. Depending on the type of a package, the set of valid properties is different.


1 Answers

  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.

like image 175
John Marshall Avatar answered Oct 14 '22 05:10

John Marshall