Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About s.dependency Depends on the modified third-party library URL address. #8550

Closed
Jinxiansen opened this issue Feb 24, 2019 · 6 comments
Closed
Labels
t4:question This is a question to the maintainers. This could lead into closing the issue or into an enhancement

Comments

@Jinxiansen
Copy link

Jinxiansen commented Feb 24, 2019

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: [!] Invalid RNImageCropPicker.podspec file: [!] Unsupported version requirements.

222

So, how can I configure it? 🤔

Thank you very much! ☕️

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

@tripleCC
Copy link
Contributor

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

@dnkoutso
Copy link
Contributor

Correct. this is not supported currently and there are no plans to do so. Sorry I am going to close this one.

@dnkoutso dnkoutso added the t4:question This is a question to the maintainers. This could lead into closing the issue or into an enhancement label Feb 24, 2019
@Jinxiansen
Copy link
Author

Jinxiansen commented Feb 25, 2019

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.

@az-oolloow
Copy link

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

@muhammadsaddamnur
Copy link

Hi @Jinxiansen,
How to do it? I'm also having the same problem

@pckz
Copy link

pckz commented Aug 17, 2022

+1

@CocoaPods CocoaPods locked as resolved and limited conversation to collaborators Aug 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
t4:question This is a question to the maintainers. This could lead into closing the issue or into an enhancement
Projects
None yet
Development

No branches or pull requests

6 participants