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

Pod::Downloader::Http::UnsupportedFileTypeError - Unsupported file type: tgz #25

Closed
nicorichard opened this issue May 20, 2014 · 11 comments

Comments

@nicorichard
Copy link

$ pod install
Analyzing dependencies
Downloading dependencies
Using AAPullToRefresh (1.0.2)
Using AFNetworking (1.3.4)
Using AFOAuth1Client (0.2.2)
Using APPhotolibrary (0.0.2)
Using Appirater (2.0.2)
Using AviarySDK (3.3.11)
Installing Calabash (0.9.168)

[!] Error installing Calabash

Report

  • What did you do?
    Ran 'pod install' with calabash as a dependency
  • What did you expect to happen?
    Expected the pods to install
  • What happened instead?
    An error

Stack

   CocoaPods : 0.33.0
        Ruby : ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0]
    RubyGems : 2.2.2
        Host : Mac OS X 10.9.2 (13C64)
       Xcode : 5.1.1 (5B1008)
Ruby lib dir : /Users/admin/.rvm/rubies/ruby-2.1.1/lib
Repositories : [redacted]

Podfile

platform :ios, '6.1'
pod 'Keel', :head
pod 'Classy', '~> 0.2.4'
pod 'AAPullToRefresh', '~> 1.0.2'
pod 'NYXImagesKit', '~> 2.3'
pod 'UIImage-Categories', '~> 0.0.1'
pod 'TCControls', '~> 0.1'
pod 'FXBlurView', '~> 1.5.1'
pod 'Querygular', :head
pod 'APPhotolibrary', '~> 0.0.1'
pod 'Slash', '~> 0.1.1'
pod 'TCParallaxView', '~> 0.2'
pod 'EZForm', '~> 1.1.4'
pod 'Reefer', '~> 0.1'
pod 'Formular', :head
pod 'ClassyUtilities', :head
pod 'Catapult', :head
pod 'Facebook-iOS-SDK', '~> 3.12.0'
pod 'ReFashAssets', :head
pod 'UIDevice+BlurEnabled', '~> 0.1'
pod 'FormatterKit', '~> 1.4.0'
pod 'STPTransitions', '= 0.0.2tc'
pod 'Masonry', '~> 0.4.0'
pod 'SKBounceAnimation', '~> 1.0.04'
pod 'RDRStickyKeyboardView', '~> 0.0.2tc'
pod 'ClassyLiveLayout', '~> 0.4'
pod 'Snapshot', :head
pod 'AviarySDK', '~> 3.3'
pod 'ScrollViewListener', '~> 0.1'
pod 'Appirater', '~> 2.0'
pod 'UIActionSheet+Blocks', '~> 0.8'
pod 'JSBadgeView', '~> 1.3'
pod 'JDStatusBarNotification', '~> 1.4.8tc'
pod 'EXPhotoViewer', '~> 1.0.1tc'
pod 'MBProgressHUD', '~> 0.8'
pod 'CrashlyticsFramework', '~> 2.1.7'
pod 'FRActionSheet', '~> 0.0.1'
pod 'NSTimer-Blocks', '~> 0.0'
target 'Refash-cal', :exclusive => false do
  pod 'Calabash', '>= 0.9.168'
end

Error

Pod::Downloader::Http::UnsupportedFileTypeError - Unsupported file type: tgz
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-downloader-0.6.0/lib/cocoapods-downloader/http.rb:82:in `filename_with_type'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-downloader-0.6.0/lib/cocoapods-downloader/http.rb:21:in `download!'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-downloader-0.6.0/lib/cocoapods-downloader/base.rb:109:in `block in download'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/downloader.rb:25:in `block in ui_action'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/user_interface.rb:52:in `section'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/downloader.rb:24:in `ui_action'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-downloader-0.6.0/lib/cocoapods-downloader/base.rb:107:in `download'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/installer/pod_source_installer.rb:117:in `download_source'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/installer/pod_source_installer.rb:64:in `install!'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/installer.rb:274:in `install_source_of_pod'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/installer.rb:248:in `block (2 levels) in install_pod_sources'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/user_interface.rb:73:in `titled_section'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/installer.rb:247:in `block in install_pod_sources'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/installer.rb:239:in `each'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/installer.rb:239:in `install_pod_sources'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/installer.rb:107:in `block in download_dependencies'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/user_interface.rb:52:in `section'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/installer.rb:105:in `download_dependencies'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/installer.rb:90:in `install!'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/command/project.rb:40:in `run_install_with_update'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/command/project.rb:70:in `run'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/claide-0.6.1/lib/claide/command.rb:281:in `run'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/lib/cocoapods/command.rb:48:in `run'
/Users/admin/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.33.0/bin/pod:33:in `<top (required)>'
/Users/admin/.rvm/rubies/ruby-2.1.1/bin/pod:23:in `load'
/Users/admin/.rvm/rubies/ruby-2.1.1/bin/pod:23:in `<main>'
/Users/admin/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
/Users/admin/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
@alexsandra84
Copy link

Quick fix

def filename_with_type(type = :zip)
        case type
        when :zip
          'file.zip'
        when 'tgz'
          'file.tgz'
        when 'tar'
          'file.tar'
        when 'tbz'
          'file.tbz'
        when 'txz'
          'file.txz'
        else
          raise UnsupportedFileTypeError, "Unsupported file type: #{type}"
        end
      end

and same in extract_with_type method

@alloy
Copy link
Member

alloy commented May 20, 2014

@alexsandra84 👍

@thedamfr
Copy link

@alloy @alexsandra84 Way to go. I guess it will be fixed quickly so.

@segiddins
Copy link
Member

I dont like intermingling the strings and symbols. It should be one or the other.

@alexsandra84
Copy link

@segiddins I agree on that.

@fabiopelosin
Copy link
Member

I dont like intermingling the strings and symbols. It should be one or the other.

@segiddins definitely, and that should be fixed in cocoapods-core. However some leniency never hurts.

@alloy
Copy link
Member

alloy commented May 20, 2014

0.6.1 release is out, update with: $ [sudo] gem install cocoapods-downloader

@thedamfr
Copy link

You could to add on the core project a dependency to this new version.
Easier for Bundle users.

2014-05-20 19:25 GMT+02:00 Eloy Durán [email protected]:

0.6.1 release is out, update with: $ [sudo] gem install
cocoapods-downloader


Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-43657166
.

@alloy
Copy link
Member

alloy commented May 21, 2014

@thedamfr Only if we would release a new Core version, but we’re not going to do that for this. The whole idea of having separate gems is that we can update individual ones.

@fabiopelosin
Copy link
Member

@thedamfr if you meant this is already done.

@thedamfr
Copy link

@irrationalfab This is what I meant. This morning I need to specify cocoapods-downloader's version. It seems that the version of Cocoapods I had didn't require as a dependency that Cocoapods-downloader to be on 0.6.1
Maybe I made some mishandling, also. I did it before my morning coffee.

source "https://rubygems.org"
ruby "2.1.0"

gem 'cocoapods'
gem 'cocoapods-downloader', '>=0.6.1'

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

6 participants