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.2 'React/RCTBridgeModule.h' file not found

See original GitHub issue

To Reproduce

Just steps in React iOS instructions.

Expected Behavior

Should build first project as expected

Code Example

npm install -g react-native-cli && react-native init AwesomeProject && cd AwesomeProject && react-native run-ios

Then build in Xcode 10.2, and shows error: “‘React/RCTBridgeModule.h’ file not found”

Also tried another another solutions as removing node_models and “yarn”; also changing project build system to “Legacy Build System”, but any of this worked.

Link to my repo: https://github.com/andremvb/TestReact

Help please 😦.

Environment

React Native Environment Info: System: OS: macOS 10.14.4 CPU: (8) x64 Intel® Core™ i7-4850HQ CPU @ 2.30GHz Memory: 265.90 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 11.13.0 - /usr/local/bin/node Yarn: 1.15.2 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2 IDEs: Xcode: 10.2/10E125 - /usr/bin/xcodebuild npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.4 => 0.59.4 npmGlobalPackages: react-native-cli: 2.0.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:10
  • Comments:42

github_iconTop GitHub Comments

40reactions
anhdevitcommented, May 2, 2019

I think some problem when config in xcode. I did try reset and it working. In your terminal, run: defaults delete com.apple.dt.Xcode

12reactions
RyanMitchellWilsoncommented, Sep 27, 2019

Getting this same issue using React-Native 0.60.5 and XCode 10.3. I tried the solutions posted above without any luck, anybody have any luck with other methods?

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 >
react/rctbridgemodule.h' file not found
tenho o Xcode 10.2.1. 'React/RCTBridgeDelegate.h' file not found within Pods > Development Pods > React > Core > React > Base > RCTBridge.h...
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 >
iOS custom native module - React Made Native Easy
#import <React/RCTBridgeModule.h> @interface Device : NSObject <RCTBridgeModule> @end. This is our main custom native modules header file.
Read more >
React/Rctdefines.H' File Not Found After Upgrading From 0.59 ...
ios The 'react / rctbridgemodule. H' file was not found. Getting this error while building a reactnative iOS app on xcode. enter image...
Read more >

github_iconTop Related Medium Post

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