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.

Error building: 'React/RCTBridgeDelegate.h' file not found; 'React/RCTBridge.h' file not found

See original GitHub issue

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

Output of node -v && npm -v && npm ls --prod --depth=0

v6.11.3
5.8.0
CTVistaPlus@0.0.1 /Users/fei/Documents/github/CtvpApp/CTVistaPlus
β”œβ”€β”€ async-lock@1.1.0
β”œβ”€β”€ promise-timeout@1.3.0
β”œβ”€β”€ react@16.3.1
β”œβ”€β”€ react-native@0.54.4
β”œβ”€β”€ react-native-check-box@2.1.0
β”œβ”€β”€ react-native-datepicker@1.6.0
β”œβ”€β”€ react-native-fcm@10.0.3
β”œβ”€β”€ react-native-gesture-handler@1.0.0-alpha.36
β”œβ”€β”€ react-native-keyboard-aware-scroll-view@0.5.0
β”œβ”€β”€ react-native-keychain@2.0.0
β”œβ”€β”€ react-native-linear-gradient@2.4.0
β”œβ”€β”€ react-native-modal@5.3.0
β”œβ”€β”€ react-native-segmented-control-tab@3.2.1
β”œβ”€β”€ react-native-sentry@0.35.3
β”œβ”€β”€ react-native-simple-dialogs@0.3.1
β”œβ”€β”€ react-native-tab-view@0.0.73
β”œβ”€β”€ react-native-vector-icons@4.4.3
β”œβ”€β”€ react-navigation@1.5.8
β”œβ”€β”€ react-navigation-redux-helpers@1.0.3
β”œβ”€β”€ react-redux@5.0.6

Config:

Sentry.config('https://...@sentry.io/...', {
....
}).install()

I have following issue: During β€˜react-native run-ios’, my project can’t compile. Description goes here …

Steps to reproduce:

  • Step

Actual result:

β–Έ Compiling RNSentry.m

❌  /node_modules/react-native/React/Base/RCTBridge.h:12:9: 'React/RCTBridgeDelegate.h' file not found

#import <React/RCTBridgeDelegate.h>
                                                                                     ^


β–Έ Compiling RNSentryEventEmitter.m

❌  node_modules/react-native/React/Modules/RCTEventEmitter.h:10:9: 'React/RCTBridge.h' file not found

#import <React/RCTBridge.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~


** BUILD FAILED **



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

Expected result:

  • Compiles ok

it’s strange that even when I have this error, my app runs in the simulater successfully.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:39 (5 by maintainers)

github_iconTop GitHub Comments

108reactions
AlberErrecommented, Jul 7, 2019

FYI if you are still facing this issue after you successfully initialize a new project using react-native init, open Terminal, go to your project ios director, run pod install and then open the workspace project. It should build successfully.

running pod install inside /ios folder has worked perfectly for me! Thank you @najielchemaly

78reactions
najielchemalycommented, Jul 5, 2019

FYI if you are still facing this issue after you successfully initialize a new project using react-native init, open Terminal, go to your project ios director, run pod install and then open the workspace project. It should build successfully.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React/RCTBridgeDelegate.h' file not found - Stack Overflow
Open the terminal and go to your project ios directory; Type in pod init (If it doesn't exist) and then pod install; Open...
Read more >
'React/RCTBridgeDelegate.h' file not found #25838 - GitHub
You can fix this issue by installing the missing dependencies using pods. These are the steps you should follow: cd ios; pod install....
Read more >
React/RCTBridgeModule.h file not f… | Apple Developer Forums
I would like to export an IPA of my application to test it on real conditions on a device. With the simulator all...
Read more >
react/rctbridgemodule.h' file not found xcode - Code Grepper
react/rctbridgedelegate.h' file not found xcode. Add Answer | View In TPC Matrix. Technical Problem Cluster First Answered On September 2, 2021 PopularityΒ ...
Read more >
react/rctbridgemodule.h' file not found splash screen
'React/RCTConvert.h' file not found might be due to a build dependency issue where RNSpotifyRemote is being built before React. Try adding React as...
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