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

Cocoapods 0.17.0.rc7 error installing a pod after having installed the :head of SDWebImage #905

Closed
MaxGabriel opened this issue Mar 26, 2013 · 2 comments

Comments

@MaxGabriel
Copy link
Contributor

Report

  • What did you do?

After having installed the :head of SDWebImage, installed another CocoaPod.

  • What did you expect to happen?

The other CocoaPod to be installed.

  • What happened instead?

CocoaPod fails with error: ArgumentError - Illformed requirement ["= HEAD based on 3.2"].

From the error message, the issue seems generic to accessing the head of a repo, but I wasn't able to replicate using the head of Objection. I ran pod spec lint on the SDWebImage podspec, but it came out clean.

I replicated the problem in a sample project -- just pod install to see the error. https://github.com/MaxGabriel/CocoaPodsError

Stack

   CocoaPods : 0.17.0.rc7
        Ruby : ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin12.3.0]
    RubyGems : 1.8.25
        Host : Mac OS X 10.8.3 (12D78)
       Xcode : 4.6.1 (4H512)
Ruby lib dir : /Users/Max/.rvm/rubies/ruby-1.9.3-p327/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 037c983885bcc42e0bd5af8c9e900b4d965b2cab

-- Note: I tested this with ruby 2.0.0, and had the same error.
-- Note: This worked with my previous version of Cocoapods. I looked at my Ruby gems, and the latest version besides 0.17.0.rc7 was cocoapods-0.16.4 so I'm pretty certain that was the version.

Podfile

platform :ios, '5.0'

pod 'SDWebImage', :head # We need beyond 3.1 to get a bug fix that prevents an alpha channel from being added to JPEGs (performance hit because it gets treated as a blended layer by CoreAnimation)

# Add Kiwi as an exclusive dependency for the test target
target :UnitTests, :exclusive => true do
   pod 'Kiwi'
end

-- Note: I switched out Kiwi for TTTAttributedLabel and had the same error.

Error

ArgumentError - Illformed requirement ["= HEAD based on 3.2"]
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/vendor/requirement.rb:83:in `parse'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/vendor/requirement.rb:108:in `block in initialize'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/vendor/requirement.rb:108:in `map!'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/vendor/requirement.rb:108:in `initialize'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/vendor/requirement.rb:46:in `new'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/vendor/requirement.rb:46:in `create'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/vendor/dependency.rb:52:in `initialize'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/dependency.rb:77:in `initialize'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/vendor/dependency.rb:214:in `new'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/vendor/dependency.rb:214:in `merge'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/dependency.rb:180:in `merge'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/specification/set.rb:76:in `block in dependency'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/specification/set.rb:75:in `each'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/specification/set.rb:75:in `inject'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/specification/set.rb:75:in `dependency'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/specification/set.rb:106:in `block in required_version'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/specification/set.rb:106:in `each'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/specification/set.rb:106:in `find'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/specification/set.rb:106:in `required_version'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-core-0.17.0.rc7/lib/cocoapods-core/specification/set.rb:88:in `specification'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/resolver.rb:157:in `block (2 levels) in find_dependency_specs'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/user_interface.rb:113:in `message'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/resolver.rb:152:in `block in find_dependency_specs'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/resolver.rb:148:in `each'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/resolver.rb:148:in `find_dependency_specs'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/resolver.rb:164:in `block (2 levels) in find_dependency_specs'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/user_interface.rb:113:in `message'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/resolver.rb:152:in `block in find_dependency_specs'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/resolver.rb:148:in `each'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/resolver.rb:148:in `find_dependency_specs'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/resolver.rb:65:in `block (2 levels) in resolve'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/user_interface.rb:52:in `section'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/resolver.rb:63:in `block in resolve'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/resolver.rb:62:in `each'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/resolver.rb:62:in `resolve'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/installer/analyzer.rb:286:in `block in resolve_dependencies'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/user_interface.rb:52:in `section'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/installer/analyzer.rb:284:in `resolve_dependencies'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/installer/analyzer.rb:56:in `analyze'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/installer.rb:157:in `analyze'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/installer.rb:92:in `block in resolve_dependencies'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/user_interface.rb:52:in `section'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/installer.rb:91:in `resolve_dependencies'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/installer.rb:84:in `install!'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/command/project.rb:40:in `run_install_with_update'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/command/project.rb:70:in `run'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/claide-0.2.0/lib/claide.rb:535:in `run'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/lib/cocoapods/command.rb:36:in `run'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/cocoapods-0.17.0.rc7/bin/pod:16:in `<top (required)>'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/bin/pod:19:in `load'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/bin/pod:19:in `<main>'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/bin/ruby_noexec_wrapper:14:in `eval'
/Users/Max/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/bin/ruby_noexec_wrapper:14:in `<main>'
@jerolimov
Copy link

Same here with other dependencies. Declaring the dependencies with

pod 'DependencyName', :head

Maybe this is a duplicate of #864

@alloy
Copy link
Member

alloy commented Mar 28, 2013

Should be fixed in CocoaPods/Core@9923e6e.

@alloy alloy closed this as completed Mar 28, 2013
jzapater pushed a commit to jzapater/CocoaPods that referenced this issue Sep 17, 2013
removing outdated and wrong versioned snapshots
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