ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.12k stars 1.56k forks source link

'React/RCTImageLoader.h' file not found #1452

Open cobellisantiago opened 4 years ago

cobellisantiago commented 4 years ago

Version

Platform

Expected behaviour

Actual behaviour

i'm not aviable to build the iOS version. In android everything works fine.

Lexical or Preprocessor issue 'React/RCTImageLoader.h' file not found

Steps to reproduce

  1. yarn add react-native-image-crop-`picker@0.25.3

2.cd ios & pod install

3.build app

Attachments

Podfile platform :ios, '9.0' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'xx' do

pod 'RNDateTimePicker', :path => '../node_modules/@react-native-community/datetimepicker/RNDateTimePicker.podspec' pod 'React', :path => '../node_modules/react-native' pod 'React-Core', :path => '../node_modules/react-native/React' pod 'React-DevSupport', :path => '../node_modules/react-native/React' pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' pod 'Firebase/DynamicLinks' pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' pod 'react-native-geolocation', path: '../node_modules/@react-native-community/geolocation' pod 'TouchID', :path => "../node_modules/react-native-touch-id"

permissions_path = '../node_modules/react-native-permissions/ios'

pod 'Permission-Contacts', :path => "#{permissions_path}/Contacts.podspec" pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse.podspec"

rn_maps_path = '../node_modules/react-native-maps' pod 'react-native-google-maps', :path => rn_maps_path pod 'GoogleMaps' pod 'Google-Maps-iOS-Utils' pod 'GooglePlaces'

use_native_modules!

pod 'react-native-safe-area-context', :path => '../node_modules/react-native-safe-area-context'

end

// stacktrace or any other useful debug info

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

SUMITIOS commented 3 years ago

Hi @cobellisantiago firstly you are using a very old version of picker. Please try 0.35.0 or above. The issue is related to linking and older version like yours may not support autolinking

cobellisantiago commented 3 years ago

My problem was due to a new version of react-native-screen 2.12.0 used by react-navigation. I downgraded to react-native-screen 2.2.0. And my problem was fixed.