Abstract method RuntimeError Crash when building spatialite cocoapod #1947

Closed
papley opened this Issue Mar 29, 2014 · 2 comments

Comments

Projects
None yet
3 participants

papley commented Mar 29, 2014

Report

  • What did you do?
    I tried to build a new sample project following the example in http://www.raywenderlich.com/12139/introduction-to-cocoapods.
    It works, but if I add the spatialite pod to my Podfile it fails.
    $ sudo pod install
  • What did you expect to happen?
    • build the pods.
  • What happened instead?
    • This:

Analyzing dependencies
Downloading dependencies
Using AFNetworking (HEAD based on 2.2.1)
Installing geos (3.4.2)
Installing proj4 (4.8.0)
Installing spatialite (HEAD based on 4.1.1)

... crash

Stack

   CocoaPods : 0.30.0
        Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
    RubyGems : 2.2.2
        Host : Mac OS X 10.9.2 (13C64)
       Xcode : 5.1 (5B130a)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 77ef1a504b6c32acab1a1880b77720d73756f547

Podfile

platform :ios, '6.0'
pod 'spatialite', :head
pod 'AFNetworking', :head

Error

RuntimeError - Abstract method
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-0.4.0/lib/cocoapods-downloader/base.rb:144:in `checkout_options'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/installer/pod_source_installer.rb:99:in `download_source'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/installer/pod_source_installer.rb:64:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/installer.rb:265:in `install_source_of_pod'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/installer.rb:239:in `block (2 levels) in install_pod_sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/user_interface.rb:73:in `titled_section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/installer.rb:238:in `block in install_pod_sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/installer.rb:236:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/installer.rb:236:in `install_pod_sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/installer.rb:105:in `block in download_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/user_interface.rb:52:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/installer.rb:103:in `download_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/installer.rb:89:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/command/project.rb:38:in `run_install_with_update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/command/project.rb:68:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:277:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods/command.rb:51:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/bin/pod:33:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'

CocoaPodsBot was assigned by papley Mar 29, 2014

Owner

neonichu commented Mar 29, 2014

The issue is that you are specifying :head on a Pod which is actually provided via HTTP. Take that out and it will work as expected.

@neonichu closed this issue with pull request CocoaPods/CocoaPods#1958

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