Error building: 'React/RCTBridgeDelegate.h' file not found; 'React/RCTBridge.h' file not found
See original GitHub issueOS:
- 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:
- Created 5 years ago
- Reactions:8
- Comments:39 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
running
pod install
inside/ios
folder has worked perfectly for me! Thank you @najielchemalyFYI 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.