Same issue as https://github.com/ivpusic/react-native-image-crop-picker/issues/2
Here is the Podfile content
pod 'react-native-image-crop-picker', :path => '../node_modules/react-native-image-crop-picker/ios'
Which sits in the ios folder of the project.
And here is the response that i get when i run pod install
[!] The dependency react-native-image-crop-picker (from ../node_modules/react-native-image-crop-picker/ios) is not used in any concrete target.
And if i change the content of podfile as you suggested and do pod install i get following
Analyzing dependencies
Fetching podspec forReactfrom../node_modules/react-native
Fetching podspec forreact-native-image-crop-pickerfrom../node_modules/react-native-image-crop-picker/ios
[!] Unable to satisfy the following requirements:
react-native-image-crop-picker (from../node_modules/react-native-image-crop-picker/ios)required byPodfileIt seems like you've changed the constraints of dependency
react-native-image-crop-pickerinside your development podreact-native-image-crop-picker.
You should runpod update react-native-image-crop-pickerto apply changes you've made.
And if i do pod update react-native-image-crop-picker then i get:
$ pod update react-native-image-crop-picker
[!] NoPodfile.lock' found in the project directory, runpod install'.
is there any chance to see example project where this can be reproduced? I tried it few times on fresh project, it works for me
I will have to create a new RN, and test and get back to you.
BTW what should be in the podfile and where should it sit?
react-native init picker
cd picker
npm i react-native-image-crop-picker --save
cd ios
pod init
then in ios folder change Podfile to following
platform :ios, '8.0'
target 'picker' do
source 'https://github.com/CocoaPods/Specs.git'
pod 'React', :subspecs => ['Core', 'RCTImage', 'RCTNetwork', 'RCTText', 'RCTWebSocket'], :path => '../node_modules/react-native'
pod 'react-native-image-crop-picker', :path => '../node_modules/react-native-image-crop-picker/ios'
end
then run pod install
add $(inherited) to other linker flags under Build Settings
and you should be done
Here you go: https://github.com/satyagupta/Quadkopters
Podfile in the ios folder.
doing pod install gives me this:
$ pod install
Analyzing dependencies
[!] The dependencyreact-native-image-crop-picker (from../node_modules/react-native-image-crop-picker/ios)is not used in any concrete target.
BTW i will try you last suggestions and come back.
Strange, now with your steps i get this
[!] Unable to find a specification for
QBImagePickerController (= 3.4.0)depended upon byreact-native-image-crop-picker
Podfile content:
platform :ios, '8.0'
target 'PROJECTNAME' do
source 'https://github.com/CocoaPods/Specs.git'
pod 'React', :subspecs => ['Core', 'RCTImage', 'RCTNetwork', 'RCTText', 'RCTWebSocket'], :path => '../node_modules/react-native'
pod 'react-native-image-crop-picker', :path => '../node_modules/react-native-image-crop-picker/ios'
end
platform :ios, '8.0'
target 'QuadKopters' do
source 'https://github.com/CocoaPods/Specs.git'
pod 'React', :subspecs => ['Core', 'RCTImage', 'RCTNetwork', 'RCTText', 'RCTWebSocket'], :path => '../node_modules/react-native'
pod 'react-native-image-crop-picker', :path => '../node_modules/react-native-image-crop-picker/ios'
end
in you example project, change Podfile with this, and inside ios dir run pod install, and it should work. (tried it, works)
Same as last time:
[!] Unable to find a specification for 'QBImagePickerController (= 3.4.0)' depended upon by 'react-native-image-crop-picker'
firewall issues or something similar?
pod search QBImagePickerController should give you QBImagePickerController (3.4.0) as available version.
I am getting this:
$ pod search QBImagePickerController
Creating search index for spec repo 'master'.. Done!
[!] Unable to find a pod with name, author, summary, or descriptionmatching 'QBImagePickerController'
https://github.com/questbeat/QBImagePicker/blob/master/QBImagePickerController.podspec I think you have some other issue. check your firewall, network configuration and similar
How do i confirm that? is there something else other POD which i can test/check it with?
yes...you can follow something like this https://www.binpress.com/tutorial/cocoapods-dependancy-management-for-xcode/139
$ pod install
Setting up CocoaPods master repo
Finally something is working, but its stucked on this screen. Anything you can help here?
The repo is 350MB so its taking time to download the repo.. I guess i will have to wait for it. There is no other method to do this?
just wait :)...will close this issue...if you still have troubles, please reopen
Thanks @ivpusic 馃憤 appreciate you helping
Hello @ivpusic so finally the clone finished and pod install also worked fine. Now i am getting these errors
So there is no header folder inside node_modules/react-native-image-crop-picker/ios/Pods/
the header search path is as following:
${PODS_ROOT}/Headers/Public
${PODS_ROOT}/Headers/Public/QBImagePickerController
${PODS_ROOT}/Headers/Public/RSKImageCropper
${PODS_ROOT}/Headers/Public/React
${PODS_ROOT}/Headers/Public/UIImage-Resize`
And if i do pod install/update then following happen
$ pod install
Re-creating CocoaPods due to major version update.
Analyzing dependencies
Fetching podspec for 'React' from '../node_modules/react-native'
[!] No podspec found for 'React' in '../node_modules/react-native'$ pod update
Update all pods
Re-creating CocoaPods due to major version update.
Updating local specs repositories
Analyzing dependencies
Fetching podspec for 'React' from '../node_modules/react-native'
[!] No podspec found for 'React' in '../node_modules/react-native'
you should:
pod install is not giving you any warnings (if yes, you should fix them => especially inherited flag warning)So finally i was able to get it installed and run the app without any problem.
I have imported in the js file as you had mentioned but it was giving ImagePicker was undefined.
When i did pod install i am getting this
The dependency
react-native-image-crop-picker (from../node_modules/react-native-image-crop-picker/ios)is not used in any concrete target.