'React/RCTBridgeModule.h' file not found
See original GitHub issueGetting ‘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:
- Created 7 years ago
- Comments:20 (6 by maintainers)
Top GitHub Comments
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”
i even set up RN 0.40 and the app is breaking anyway how to solve it?