react-native: Xcode 10.2 'React/RCTBridgeModule.h' file not found
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
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 10
- Comments: 42
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
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?
@ralfisalhon try clearing derived data cache
rm -rf ~/Library/Developer/Xcode/DerivedData
and restart xcode. maybe it can help you.@anhdevit Your solution works. Thanks a lot!
I am at RN 0.59.9 only and getting this error.