React-native-image-crop-picker: pod install failed

Created on 31 May 2016  路  22Comments  路  Source: ivpusic/react-native-image-crop-picker

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.

All 22 comments

And if i change the content of podfile as you suggested and do pod install i get following

Analyzing dependencies
Fetching podspec for React from ../node_modules/react-native
Fetching podspec for react-native-image-crop-picker from ../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 by Podfile

It seems like you've changed the constraints of dependency react-native-image-crop-picker inside your development pod react-native-image-crop-picker.
You should run pod update react-native-image-crop-picker to 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
[!] No Podfile.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 dependency react-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 by react-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?

$ pod install Setting up CocoaPods master repo

Finally something is working, but its stucked on this screen. Anything you can help here?

I got it, http://stackoverflow.com/questions/21022638/pod-install-is-staying-on-setting-up-cocoapods-master-repo

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

http://grab.by/QvXY

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:

  • make sure you have react-native installed (check node_modules)
  • make sure 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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Martian2Lee picture Martian2Lee  路  3Comments

habovh picture habovh  路  3Comments

phantom1299 picture phantom1299  路  3Comments

althurzard picture althurzard  路  3Comments

zhangjunhou picture zhangjunhou  路  3Comments