react-native-image-crop-picker: React/RCTImageLoader.h file not found
Version
Tell us which versions you are using:
- react-native-image-crop-picker v0.20.1
- react-native v0.54.2
Platform
Tell us to which platform this issue is related
- iOS
Expected behaviour
Build succesfully
Actual behaviour
Build failed: React/RCTImageLoader.h file not found
Steps to reproduce
-
Add pod to podfile
-
Run project
Attachments
Libraries:
Podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'onblast' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga/yoga.podspec'
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'CxxBridge', # Required For React Native 0.45.0+
'Core',
'DevSupport'
# Add any other subspecs you want to use in your project
]
# Pods for onblast
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'Google/SignIn'
# pod 'react-native-video', :path => '../node_modules/react-native-video'
target 'onblastTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'onblast-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for onblast-tvOS
target 'onblast-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 13
- Comments: 20 (3 by maintainers)
Solved this prob by edit Podfile Just add
RCTImage
module from React PS: It’s worked for meFails again on 0.61-rc2. It seems there are no such file exported from RN anymore
I’m currently running into this issue. I would rather not include the
React
pod explicitly as that has its collection of problems in my experience. Any other pointers would be helpfulHi, I am facing this issue with RN 0.60.5 and RN Image crop picker v0.24.0
What I’ve tried so far but it didn’t fix the problem:
I included s.dependency ‘React-RCTImage’ in the podspec for this library as @woshi82 mentioned above.
I replaced
#if __has_include(<React/RCTBridgeModule.h>) #import <React/RCTBridgeModule.h> #import <React/RCTImageLoader.h> #else #import "RCTBridgeModule.h" #import "RCTImageLoader.h" #endif
with
#if __has_include(<React/RCTBridge.h>) #import <React/RCTBridgeModule.h> #import <React/RCTImageLoader.h> #else #import "RCTBridgeModule.h" #import "RCTImageLoader.h" #endif
I feel this problem arises because RCTImage is now a Pod for the .xcworkspace now as opposed to a Library for the .xcodeproj
@QuentinNolan @4js i solved my problem by removing the line use_frameworks! from the Podfile
any update on this?
I have same kind of problem.
“React/RCTDefines.h file not found.”
RNImageCropPicker is missing the dependency target “React”. I hope the answer to your issue will solve mine too.
@ex3ndr https://github.com/ivpusic/react-native-image-crop-picker/blob/master/RNImageCropPicker.podspec
s.dependency 'React-RCTImage'
I ended up adding the library manually to my project and that fixed it I think
I have same kind of problem.
“React/RCTDefines.h file not found.”
RNImageCropPicker is missing the dependency target “React”. I hope the answer to your issue will solve mine too.