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

Vague error message for 0.0.0-pre #170

Open
bnickel opened this issue Nov 22, 2022 · 0 comments
Open

Vague error message for 0.0.0-pre #170

bnickel opened this issue Nov 22, 2022 · 0 comments

Comments

@bnickel
Copy link

bnickel commented Nov 22, 2022

This looks like an edge case but I struggled to diagnose it for a few hours.

My podspec looks like this:

Pod::Spec.new do |s|
  s.name = 'MyLib'
  s.version = '0.0.0-alpha.0'
  ...

When I run pod spec lint MyLib.podspec, I get the following error, produced by Molinillo:

    - ERROR | [iOS] unknown: Encountered an unknown error (CocoaPods could not find compatible versions for pod "MyLib":
  In Podfile:
    MyLib (from `/Users/bnickel/Documents/GitHub/my-lib/MyLib.podspec`)

After some experimentation, I discovered that any pre-release label on 0.0.0 triggers this error. Validation continues if I use 0.0.0 or 0.0.1-alpha.0. This could either be resolved by adding support for 0.0.0 pre-releases or improving the message that gets logged in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant