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.

RCTBridgeModule.h not found when trying to build

See original GitHub issue

When attempting to build and run for ios, the below error is recieved. I have attempted both react-native link and manually linking the node module. The error persists. Without the keychain dependency, there are no issues and the applications functions as expected.

In file included from [REDACTED]/node_modules/react-native-keychain/RNKeychainManager/RNKeychainManager.m:10:
[REDACTED]/node_modules/react-native-keychain/RNKeychainManager/RNKeychainManager.h:9:9: fatal error: 'React/RCTBridgeModule.h' file not found
#import "React/RCTBridgeModule.h"
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.



** BUILD FAILED **


The following build commands failed:
        CompileC [REDACTED]/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNKeychain.build/Objects-normal/x86_64/RNKeychainManager.o [REDACTED]/node_modules/react-native-keychain/RNKeychainManager/RNKeychainManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
inturbiduscommented, Jul 6, 2018

@steventnorris-40AU and for others coming here after having trouble with react-native-keychain.
See my comment here https://github.com/itinance/react-native-fs/issues/408#issuecomment-402897855

After attempting several times to get this to install using the ignite-keychain plugin. I came upon this error

In file included from [REDACTED]/node_modules/react-native-keychain/RNKeychainManager/RNKeychainManager.m:10:
[REDACTED]/node_modules/react-native-keychain/RNKeychainManager/RNKeychainManager.h:9:9: fatal error: 'React/RCTBridgeModule.h' file not found
#import "React/RCTBridgeModule.h"
        ^~~~~~~~~~~~~~~~~~~~~~~~~

Your Podfile probably has a local link to the RNKeychainManager with a dependency on React (0.11 old version). To fix, add this to your Podfile and run pod install:

# React Native requirements
pod 'yoga', path: './node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => './node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'Folly', :podspec => './node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'GLog', :podspec => './node_modules/react-native/third-party-podspecs/GLog.podspec'
pod 'React', path: './node_modules/react-native', subspecs: [
  'Core',
  'jschelpers',
  'cxxreact',
  'CxxBridge',
  'DevSupport',
  'RCTText',
  'RCTImage',
  'RCTNetwork',
  'RCTActionSheet',
  'RCTAnimation',
  'RCTWebSocket',
]

I had to modify this slightly changing GLog to glog. Also, if your node_modules directory is not in the same directory as your Podfile change your paths to …/node_modules

0reactions
thehellmakercommented, Oct 15, 2019

did a pod update and all fell in place for me

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 ...
Go to scheme -> edit scheme -> build, delete the React(missing) using the 'minus' button. Click on 'add' or a 'plus' button. Find...
Read more >
Ios – `React/RCTBridgeModule.h` file not found - iTecNote
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 >
[Solved]-`React/RCTBridgeModule.h` file not found-Reactjs
What happened was that Xcode was trying to build the react-native libraries in parallel and was building libraries with implicit react dependencies before ......
Read more >
Fatal error: 'React/RCTBridgeModule.h' file not found
h ”) while building iOS archive in Bitrise for react native project and this error is not appearing in my local machine with...
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