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

Abstract method RuntimeError Crash when building spatialite cocoapod #1947

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

Abstract method RuntimeError Crash when building spatialite cocoapod #1947

papley opened this issue Mar 29, 2014 · 2 comments
Assignees

Comments

@papley
Copy link

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>'
@neonichu
Copy link
Member

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.

@CocoaPodsBot
Copy link

@neonichu closed this issue with pull request #1958

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