Cocoapods: About `s.dependency` Depends on the modified third-party library URL address.

Created on 24 Feb 2019  路  4Comments  路  Source: CocoaPods/CocoaPods

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'
111

The execution failed, prompting:

[!] Failed to load 'RNImageCropPicker' podspec: [!] InvalidRNImageCropPicker.podspecfile: [!] Unsupported version requirements.

222

So, how can I configure it? 馃

Thank you very much! 鈽曪笍

English is not my native language; please excuse typing errors.

question

Most helpful comment

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.

All 4 comments

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...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tlandsmancars picture tlandsmancars  路  3Comments

pallaviMN picture pallaviMN  路  3Comments

Mingmingmew picture Mingmingmew  路  3Comments

steffendsommer picture steffendsommer  路  3Comments

dawnnnnn picture dawnnnnn  路  3Comments