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

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.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 22 (8 by maintainers)

Commits related to this issue

Most upvoted comments

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