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.

'React/RCTBridgeModule.h' file not found

See original GitHub issue

Getting ‘React/RCTBridgeModule.h’ file not found when building this plugin.

`=== BUILD TARGET RNImagePicker OF PROJECT RNImagePicker WITH CONFIGURATION Debug ===

Check dependencies

CompileC /Users/efren/meetdine-react/ios/build/Build/Intermediates/RNImagePicker.build/Debug-iphonesimulator/RNImagePicker.build/Objects-normal/x86_64/ImagePickerManager.o ImagePickerManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/efren/meetdine-react/node_modules/react-native-image-picker/ios export LANG=en_US.US-ASCII export PATH=“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/efren/.rvm/gems/ruby-2.0.0-p247/bin:/Users/efren/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/efren/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/efren/.rvm/bin:/Users/efren/.fastlane/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/MAMP/Library/bin:/Users/efren:/Users/efren/.rvm/bin” /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=90 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/efren/meetdine-react/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/efren/meetdine-react/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/efren/meetdine-react/ios/build/Build/Intermediates/RNImagePicker.build/Debug-iphonesimulator/RNImagePicker.build/RNImagePicker-generated-files.hmap -I/Users/efren/meetdine-react/ios/build/Build/Intermediates/RNImagePicker.build/Debug-iphonesimulator/RNImagePicker.build/RNImagePicker-own-target-headers.hmap -I/Users/efren/meetdine-react/ios/build/Build/Intermediates/RNImagePicker.build/Debug-iphonesimulator/RNImagePicker.build/RNImagePicker-all-target-headers.hmap -iquote /Users/efren/meetdine-react/ios/build/Build/Intermediates/RNImagePicker.build/Debug-iphonesimulator/RNImagePicker.build/RNImagePicker-project-headers.hmap -I/Users/efren/meetdine-react/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/efren/meetdine-react/ios/build/Build/Products/Debug-iphonesimulator/usr/local/include -I/Users/efren/meetdine-react/ios/build/Build/Intermediates/RNImagePicker.build/Debug-iphonesimulator/RNImagePicker.build/DerivedSources/x86_64 -I/Users/efren/meetdine-react/ios/build/Build/Intermediates/RNImagePicker.build/Debug-iphonesimulator/RNImagePicker.build/DerivedSources -F/Users/efren/meetdine-react/ios/build/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/efren/meetdine-react/ios/build/Build/Intermediates/RNImagePicker.build/Debug-iphonesimulator/RNImagePicker.build/Objects-normal/x86_64/ImagePickerManager.d --serialize-diagnostics /Users/efren/meetdine-react/ios/build/Build/Intermediates/RNImagePicker.build/Debug-iphonesimulator/RNImagePicker.build/Objects-normal/x86_64/ImagePickerManager.dia -c /Users/efren/meetdine-react/node_modules/react-native-image-picker/ios/ImagePickerManager.m -o /Users/efren/meetdine-react/ios/build/Build/Intermediates/RNImagePicker.build/Debug-iphonesimulator/RNImagePicker.build/Objects-normal/x86_64/ImagePickerManager.o In file included from /Users/efren/meetdine-react/node_modules/react-native-image-picker/ios/ImagePickerManager.m:1: /Users/efren/meetdine-react/node_modules/react-native-image-picker/ios/ImagePickerManager.h:1:9: fatal error: ‘React/RCTBridgeModule.h’ file not found #import <React/RCTBridgeModule.h> ^ 1 error generated.

** BUILD FAILED **`

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (6 by maintainers)

github_iconTop GitHub Comments

31reactions
eboomylcommented, Jan 17, 2017

first in xcode Libraries -> RNImagePicker.xcodeproj -> buid Settings ->Search Paths ->Header Search Paths add $(SRCROOT)/…/…/react-native/React because node_modules/react-native-image-picker/ios second in xcode your project select ,is not Libraries ,you select Build Phases at “Link Binary With Libraries” add “libRNImagePicker.a” third ImagePickerManager.h and ImagePickerManager.m two file change #import <React/RCTBridgeModule.h> to #import “RCTBridgeModule.h” #import <React/RCTConvert.h> to #import “RCTConvert.h”

19reactions
zizizi17commented, Jan 17, 2017

i even set up RN 0.40 and the app is breaking anyway how to solve it?

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 ...
When you go to scheme -> edit scheme -> build. Do you have see React (missing) ? If so, i might have a...
Read more >
React Native: How to fixed RCTBridgeModule.h file not found
React Native: How to fixed RCTBridgeModule. h file not found. 19K views 3 years ago. AppSolution. AppSolution. 126 subscribers. Subscribe.
Read more >
[Solved]-`React/RCTBridgeModule.h` file not found-Reactjs
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 >
M1 Apple Silicon and React-Native IOS Build Problems [ENG]
React /RCTBridgeModule.h file not found, Podfile.lock can't found, few Build failures and Xcode build failed are our errors.
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