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.

Xcode 10: third-party: 'config.h' file not found

See original GitHub issue

After upgrading from 0.44.3 -> 0.45.0, XCode no longer builds for me with the following error:

Lexical or Preprocessor Issue
'config.h' file not found

screen shot 2017-06-08 at 2 14 56 am

I am not using cocoa pods, just npm packages. Seems like some related changes have been made that may be causing this issue?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:226
  • Comments:134 (26 by maintainers)

github_iconTop GitHub Comments

898reactions
Ignigenacommented, Jul 5, 2017

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
164reactions
javachecommented, Jun 8, 2017

Can you try removing the third-party folder in your node_modules/react-native folder?

Read more comments on GitHub >

github_iconTop Results From Across the Web

"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/.
Read more >
[Solved]-'config.h' file not found after moving the third-party folder
Well, try to follow this solution: Assuming you are starting at your projects root. You need to execute these commands in your terminal:...
Read more >
React Native Error config.h file not found mutex.h During Archive
Solution to the glog error "config.h file not found mutex.h". First run ios-install-third-party script then configure glog with .
Read more >
Xcode 10: third-party: 'config.h' file not found - CodeAntenna
configure --host arm-apple-darwin. 当我们使用Xcode10 编译运行之前的RN项目时,报如下错误时:. error:Build input file cannot be found:'/Users/…
Read more >
Xcode 10: third-party: 'config.h' file not found - 阿里云开发者社区
升级xcode到10版本之后遇到config.h 文件找不到的问题In the Terminal, navigate to the react-native/third-party/glog folder inside node_modules...
Read more >

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