Skip to content

Instantly share code, notes, and snippets.

@clayallsopp
Created April 26, 2013 06:07
Show Gist options
  • Save clayallsopp/5465314 to your computer and use it in GitHub Desktop.
Save clayallsopp/5465314 to your computer and use it in GitHub Desktop.
# load a podspec via HTTP
# example from http://docs.cocoapods.org/podfile.html#pod
app.pods do
pod 'JSONKit', :podspec => 'https://raw.github.com/gist/1346394/1d26570f68ca27377a27430c65841a0880395d72/JSONKit.podspec'
end
# Throws this error:
=begin
[Bug] Unable to find the specification for `JSONKit (from `https://raw.github.com/gist/1346394/1d26570f68ca27377a27430c65841a0880395d72/JSONKit.podspec`)`.
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/resolver.rb:185:in `find_cached_set'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/resolver.rb:153:in `block (2 levels) in find_dependency_specs'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/user_interface.rb:113:in `message'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/resolver.rb:152:in `block in find_dependency_specs'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/resolver.rb:148:in `each'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/resolver.rb:148:in `find_dependency_specs'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/resolver.rb:65:in `block (2 levels) in resolve'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/user_interface.rb:52:in `section'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/resolver.rb:63:in `block in resolve'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/resolver.rb:62:in `each'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/resolver.rb:62:in `resolve'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/installer/analyzer.rb:290:in `block in resolve_dependencies'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/user_interface.rb:52:in `section'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/installer/analyzer.rb:288:in `resolve_dependencies'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/installer/analyzer.rb:56:in `analyze'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cocoapods-0.18.1/lib/cocoapods/installer/analyzer.rb:68:in `needs_install?'
~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/motion-cocoapods-1.3.0.rc1/lib/motion/project/cocoapods.rb:45:in `pods'
=end
@adammenges
Copy link

Did you find a fix for this? Currently getting the same error.

@adammenges
Copy link

pod setup fixed it.

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