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.

X-code build fails - React/RCTBridgeModule.h file not found

See original GitHub issue

X-code version: 10.3 React native version: 0.59.8 When building I’m getting an error

Lexical or Preprocessor Issue Group
/node_modules/react-native-file-viewer/ios/RNFileViewerManager.h:2:9: 'React/RCTBridgeModule.h' file not found

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lucasriondelcommented, Jan 23, 2020

I was able to make it work by doing yarn add react-native-file-viewer (do NOT do a react-native link afterwards), add pod 'RNFileViewer', :path => '../node_modules/react-native-file-viewer' in the Podfile and then a pod install in the ios/ folder did the trick, using RN 0.59.10.

0reactions
vinzscamcommented, Dec 20, 2019

@elourenco and @SelvaraniAlagumuthu have you tried running cd ios && pod install? react-native link is not required since RN 0.60.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`React/RCTBridgeModule.h` file not found - Stack Overflow
In my case this particular problem happened when I was trying to archive a 0.40+ react-native app for iOS (solution was found here:...
Read more >
[iOS - RN 0.61.1 migration] React/RCTBridgeModule.h file not ...
So I tried to add ReactCore + ReactCoreModule, but failed :D Looking forward to finding a new workaround. I would try to unlink...
Read more >
iOS : Build failed 'React/RCTBridgeModule.h' file not found
iOS : Build failed ' React / RCTBridgeModule. h ' file not found [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] iOS ...
Read more >
Fatal error: 'React/RCTBridgeModule.h' file not found
Hi Team, I am getting this error( fatal error: 'React/RCTBridgeModule.h' file not found #import “React/RCTBridgeModule.h”) while building ...
Read more >
Ios – Build failed 'React/RCTBridgeModule.h' file not found
I tried to clean my project : rm -rf node_modules; yarn cache clean && yarn install; rm -rf ios/Pods/ && pod install. In...
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