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

Unrecognized options [:headers] #91

Closed
kevmando opened this issue Nov 4, 2019 · 3 comments
Closed

Unrecognized options [:headers] #91

kevmando opened this issue Nov 4, 2019 · 3 comments

Comments

@kevmando
Copy link

kevmando commented Nov 4, 2019

Hi,

I'm trying to set up private repo and have a problem with source setting with http url.
http://guides.cocoapods.org/syntax/podspec.html#source

It seems the document says 'headers' is a supported key, but I keep getting this error if I use headers.
If I remove headers, then it fails on different error, which looks like failing to download zip file because of missing authorization.

I'm using pod 1.8.4 and it seems cocoa pod-downloader is 1.2.2.

error

pod spec lint test-framework.podspec


 -> test-framework (0.1.0)
    - ERROR | [iOS] unknown: Encountered an unknown error (Unrecognized options `[:headers]`) during validation.


Analyzed 1 podspec.


[!] The spec did not pass validation, due to 1 error.

podspec file

Pod::Spec.new do |spec|


  spec.name         = "test-framework"
  spec.version      = "0.1.0"
  spec.summary      = "test-framework"
  spec.homepage     = "http://example.com"
  spec.license      = "NO_MIT"
  spec.author       = { "[email protected]" => "[email protected]" }
  spec.platform     = :ios, "10.0"
  spec.source       = { :http => 'https://enterprise-github/test/releases/download/0.1.0/TEST.framework.zip',
                         :type => 'zip',
                         :headers => ['Authorization: token token-value-here']
                        
                      }
  spec.vendored_frameworks = 'TEST.framework'


end

gemfile.lock

    cocoapods (1.8.4)
      activesupport (>= 4.0.2, < 5)
      claide (>= 1.0.2, < 2.0)
      cocoapods-core (= 1.8.4)
      cocoapods-deintegrate (>= 1.0.3, < 2.0)
      cocoapods-downloader (>= 1.2.2, < 2.0)
      cocoapods-plugins (>= 1.0.0, < 2.0)
@amorde
Copy link
Member

amorde commented Nov 4, 2019

Hello! looks like this was implemented, but never released. This was added in #89.

I'll see if we can get a release out for this

@kevmando
Copy link
Author

kevmando commented Nov 4, 2019

Thanks @amorde
I had seen the pr merged and just thought it would have released already.
Hope it would be released soon. 🙏 🤞

@dnkoutso
Copy link
Contributor

Released with 1.3.0.

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

3 participants