Getting Lexical or Preprocessor issues
#import <React/RCTDefines.h> 'React/RCTDefines.h' file not found
Happing at #import "ImageCropPicker.h"

can you show me your Pods file
This is my entire pod file
# Uncomment the next line to define a global platform for your project
platform :ios, '8.0'
target 'ConstructionCloud' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for ConstructionCloud
rn_path = '../node_modules/react-native'
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket'
]
pod 'RNImageCropPicker', :path => '../node_modules/react-native-image-crop-picker'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
I am facing the same issue
'React/RCTDefines.h' file not found
using react-native-image-crop-picker 0.20.0
My pod File
target 'xxxxxxx' do
rn_path = '../node_modules/react-native'
rn_maps_path = '../node_modules/react-native-maps'
# See http://facebook.github.io/react-native/docs/integration-with-existing-apps.html#configuring-cocoapods-dependencies
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
]
# React Native third party dependencies podspecs
pod 'DoubleConversion', :podspec => "#{rn_path}/third-party-podspecs/DoubleConversion.podspec"
pod 'glog', :podspec => "#{rn_path}/third-party-podspecs/glog.podspec"
# If you are using React Native <0.54, you will get the following error:
# "The name of the given podspec GLog doesn't match the expected one glog"
# Use the following line instead:
#pod 'GLog', :podspec => "#{rn_path}/third-party-podspecs/GLog.podspec"
pod 'Folly', :podspec => "#{rn_path}/third-party-podspecs/Folly.podspec"
# react-native-maps dependencies
pod 'react-native-maps', path: rn_maps_path
pod 'react-native-google-maps', path: rn_maps_path # Unomment this line if you want to support GoogleMaps on iOS
pod 'GoogleMaps' # Uncomment this line if you want to support GoogleMaps on iOS
pod 'Google-Maps-iOS-Utils' # Uncomment this line if you want to support GoogleMaps on iOS
pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'
pod 'RNI18n', :path => '../node_modules/react-native-i18n'
pod 'RNImageCropPicker', :path => '../node_modules/react-native-image-crop-picker'
pod 'react-native-video', :path => '../node_modules/react-native-video'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'react-native-google-maps'
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
end
end
if target.name == "React"
target.remove_from_project
end
end
end
hello, I encountered the same mistake, may I ask how you solved it。This problem has been bothering me for many days. I hope to get your help. Thank you very much。
I did the manual setup and that worked for me.
On Fri, Mar 29, 2019 at 1:51 PM Yao notifications@github.com wrote:
hello, I encountered the same mistake, may I ask how you solved it。This
problem has been bothering me for many days. I hope to get your help. Thank
you very much。—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ivpusic/react-native-image-crop-picker/issues/635#issuecomment-477910408,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Al7bzngK-k3YqMZ53KaqNhr5umJbT7mdks5vbc0NgaJpZM4Sd6-M
.
--
The problem should be that the third-party library lacks s.dependency 'React', resulting in no correct reference