"Pod install" command throws "Unsupported file type: tgz" error #2158

Closed
bnd5k opened this Issue May 20, 2014 · 4 comments

Projects

None yet

4 participants

bnd5k commented May 20, 2014

Report

  • What did you do?
    Pod Install
  • What did you expect to happen?
    I expected no errors to be thrown.
  • What happened instead?
    Errors were thrown. Cocoapods was unable to install the Calabash gem, which it's done successfully several times before.

Output from “pod install –verbose”

Downloading dependencies

-> Installing AFNetworking 2.2.4 (was 2.2.4)

GitHub download
$ /usr/local/bin/git config core.bare
true
$ /usr/local/bin/git config core.bare
true
Updating cache git repo (/Users/me/Library/Caches/CocoaPods/GitHub/a7f129229d47b74a225e1e2ed0bc604f35d71ac7)
$ /usr/local/bin/git remote update
Fetching origin
Cloning to Pods folder
$ /usr/local/bin/git clone /Users/me/Library/Caches/CocoaPods/GitHub/a7f129229d47b74a225e1e2ed0bc604f35d71ac7 /Users/me/repos/mobile-ios/Pods/AFNetworking
Cloning into '/Users/me/repos/mobile-ios/Pods/AFNetworking'...
done.
$ /usr/local/bin/git fetch origin tags/2.2.4 2>&1
From /Users/me/Library/Caches/CocoaPods/GitHub/a7f129229d47b74a225e1e2ed0bc604f35d71ac7
* tag 2.2.4 -> FETCH_HEAD
$ /usr/local/bin/git reset --hard FETCH_HEAD
HEAD is now at 0f7ab0e Bumping version to 2.2.4
$ /usr/local/bin/git checkout -b activated-pod-commit 2>&1
Switched to a new branch 'activated-pod-commit'
$ /usr/local/bin/git submodule update --init

-> Installing Calabash 0.9.168.pre4 (was 0.9.168.pre4)

Http download

[!] Error installing Calabash

Stack

   CocoaPods : 0.32.1
        Ruby : ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin13.1.0]
    RubyGems : 2.2.2
        Host : Mac OS X 10.9.2 (13C1021)
       Xcode : 5.1.1 (5B1008)
Ruby lib dir : /Users/me/.rvm/rubies/ruby-2.0.0-p353/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ b947340d648f51d66a6df1cbd1b5f7d8cf5a6de0

Podfile

platform :ios, '7.0'

xcodeproj 'Code/MyProject.xcodeproj'

pod 'Mantle', '1.4'
pod 'AFNetworking', '~> 2.0'
pod 'JSMessagesViewController','~> 4.0.3'
pod 'UIImageEffects','0.0.1'

target 'MyProject-cal', exclusive: false do
    pod 'Calabash', '0.9.168.pre4'
end

### Error

Pod::Downloader::Http::UnsupportedFileTypeError - Unsupported file type: tgz
/Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-downloader-0.5.0/lib/cocoapods-downloader/http.rb:82:in filename_with_type' /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-downloader-0.5.0/lib/cocoapods-downloader/http.rb:22:indownload!'
/Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-downloader-0.5.0/lib/cocoapods-downloader/base.rb:111:in block in download' /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/downloader.rb:25:inblock in ui_action'
/Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/user_interface.rb:52:in section' /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/downloader.rb:24:inui_action'
/Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-downloader-0.5.0/lib/cocoapods-downloader/base.rb:109:in download' /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/installer/pod_source_installer.rb:117:indownload_source'
/Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/installer/pod_source_installer.rb:64:in install!' /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/installer.rb:272:ininstall_source_of_pod'
/Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/installer.rb:246:in block (2 levels) in install_pod_sources' /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/user_interface.rb:73:intitled_section'
/Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/installer.rb:245:in block in install_pod_sources' /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/installer.rb:237:ineach'
/Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/installer.rb:237:in install_pod_sources' /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/installer.rb:106:inblock in download_dependencies'
/Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/user_interface.rb:52:in section' /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/installer.rb:104:indownload_dependencies'
/Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/installer.rb:90:in install!' /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/command/project.rb:40:inrun_install_with_update'
/Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/command/project.rb:113:in run' /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/claide-0.5.0/lib/claide/command.rb:277:inrun'
/Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/lib/cocoapods/command.rb:54:in run' /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.32.1/bin/pod:33:in<top (required)>'
/Users/me/.rvm/gems/ruby-2.0.0-p353/bin/pod:23:in load' /Users/me/.rvm/gems/ruby-2.0.0-p353/bin/pod:23:in

'
/Users/me/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in eval' /Users/me/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in'

Contributor

Having same issue with Calabash. CocoaPods/cocoapods-downloader#25 looks like it will fix it.

Contributor
kylef commented May 20, 2014

Fixed by CocoaPods/cocoapods-downloader@22aef18 and release should be out shortly.

@kylef kylef closed this May 20, 2014
Owner
alloy commented May 20, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment