I used a repository QBImagePickerController , but it hasn't been maintained for 3 years. I forked a source and modified it, but it is a dependency of my other third-party repository.
When I write like this:
s.dependency 'QBImagePickerController', :git => 'https://github.com/laoyuegou/QBImagePicker.git'

The execution failed, prompting:
[!] Failed to load 'RNImageCropPicker' podspec:
[!] InvalidRNImageCropPicker.podspecfile: [!] Unsupported version requirements.

So, how can I configure it? 馃
Thank you very much! 鈽曪笍
English is not my native language; please excuse typing errors.
dependency's requirements can't be a git
unless version_requirements.all? { |req| req.is_a?(String) }
version_requirements.each do |requirement|
if requirement.is_a?(Hash)
if !requirement[:path].nil?
raise Informative, 'Podspecs cannot specify the source of dependencies. The `:path` option is not supported.'\
' `:path` can be used in the Podfile instead to override global dependencies.'
elsif !requirement[:git].nil?
raise Informative, 'Podspecs cannot specify the source of dependencies. The `:git` option is not supported.'\
' `:git` can be used in the Podfile instead to override global dependencies.'
end
end
end
raise Informative, "Unsupported version requirements. #{version_requirements.inspect} is not valid."
end
you may publish a pre-release version if QBImagePickerController is in development
Correct. this is not supported currently and there are no plans to do so. Sorry I am going to close this one.
Ok, thanks !
I forked the source code of this repository and regenerated a new pod name via pod trunk push and other commands: s.dependency 'QBImagePickerControllerNew', this problem is solved. 馃槵
English is not my native language; please excuse typing errors.
Seems to be a popular problem @dnkoutso , e.g. for this particular pod that @Jinxiansen mentions (QBIMAGEPICKERCONTROLLER) there are 6 different versions of it on cocoapods.org, suggesting this is more frequent than not...
Most helpful comment
Ok, thanks !
I forked the source code of this repository and regenerated a new pod name via
pod trunk pushand other commands:s.dependency 'QBImagePickerControllerNew', this problem is solved. 馃槵