Skip to content

Latest RestKit 0.10.3 podspec is broken #935

Closed
aneilbaboo opened this Issue Apr 4, 2013 · 9 comments

5 participants

@aneilbaboo

I'm getting an error with the latest RestKit 0.10.3 podspec:
CocoaPods/Specs@f04831f#RestKit/0.10.3/RestKit.podspec

My Podfile contains:
pod 'RestKit', ' ~> 0.10.3'
pod 'RestKit/ObjectMapping', '~> 0.10.3'

The previous podspecs 244d0fc and f793998 are fine.

Here is the error:

$ pod install
Analyzing dependencies

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 0.17.2
        Ruby : ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
    RubyGems : 2.0.3
        Host : Mac OS X 10.8.3 (12D78)
       Xcode : 4.6.1 (4H512)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 11b5b670036b8abd9f55cbd8d7df2b9780bf54b7

Podfile

platform :ios, '5.1'
pod 'RestKit', '0.10.3'
pod 'RestKit/ObjectMapping', '0.10.3'  

Error

ArgumentError - Malformed version number string 0.20.0-rc1
/Library/Ruby/Gems/1.8/gems/cocoapods-core-0.17.2/lib/cocoapods-core/vendor/version.rb:189:in `initialize'
/Library/Ruby/Gems/1.8/gems/cocoapods-core-0.17.2/lib/cocoapods-core/vendor/dependency.rb:188:in `new'
/Library/Ruby/Gems/1.8/gems/cocoapods-core-0.17.2/lib/cocoapods-core/vendor/dependency.rb:188:in `match?'
/Library/Ruby/Gems/1.8/gems/cocoapods-core-0.17.2/lib/cocoapods-core/specification/set.rb:106:in `required_version'
/Library/Ruby/Gems/1.8/gems/cocoapods-core-0.17.2/lib/cocoapods-core/specification.rb:592:in `find'
/Library/Ruby/Gems/1.8/gems/cocoapods-core-0.17.2/lib/cocoapods-core/specification/set.rb:106:in `each'
/Library/Ruby/Gems/1.8/gems/cocoapods-core-0.17.2/lib/cocoapods-core/specification/set.rb:106:in `find'
/Library/Ruby/Gems/1.8/gems/cocoapods-core-0.17.2/lib/cocoapods-core/specification/set.rb:106:in `required_version'
/Library/Ruby/Gems/1.8/gems/cocoapods-core-0.17.2/lib/cocoapods-core/specification/set.rb:88:in `specification'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/resolver.rb:157:in `find_dependency_specs'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/user_interface.rb:113:in `message'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/resolver.rb:152:in `find_dependency_specs'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/resolver.rb:148:in `each'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/resolver.rb:148:in `find_dependency_specs'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/resolver.rb:65:in `resolve'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/user_interface.rb:52:in `section'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/resolver.rb:63:in `resolve'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/resolver.rb:62:in `each'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/resolver.rb:62:in `resolve'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/installer/analyzer.rb:289:in `resolve_dependencies'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/user_interface.rb:52:in `section'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/installer/analyzer.rb:287:in `resolve_dependencies'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/installer/analyzer.rb:56:in `analyze'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/installer.rb:157:in `analyze'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/installer.rb:92:in `resolve_dependencies'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/user_interface.rb:52:in `section'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/installer.rb:91:in `resolve_dependencies'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/installer.rb:84:in `install!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/command/project.rb:40:in `run_install_with_update'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/command/project.rb:70:in `run'
/Library/Ruby/Gems/1.8/gems/claide-0.2.0/lib/claide.rb:535:in `run'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/lib/cocoapods/command.rb:36:in `run'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.17.2/bin/pod:16
/usr/bin/pod:23:in `load'
/usr/bin/pod:23

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing github issues similar to yours:
https://github.com/CocoaPods/CocoaPods/issues/search?q=Malformed+version+number+string+0.20.0-rc1

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Don't forget to anonymize any private data!

@alloy
CocoaPods member
alloy commented Apr 4, 2013
@alloy alloy closed this Apr 4, 2013
@jamescmartinez

@alloy How can I build with the latest Core?

@fabiopelosin
CocoaPods member

I have reverted the bad commit. Reopening because there is bug in CP.

@fabiopelosin fabiopelosin reopened this Apr 4, 2013
@jamescmartinez

Got it, thanks.

@orta
CocoaPods member
orta commented Apr 4, 2013

Also, in this case the podfile is wrong, just include RestKit and it will bring in the ORM correctly instead of before where you had to also include the pod 'RestKit/ObjectMapping', '0.10.3' line

Before my changes you couldn't just do pod "RestKit", "0.10.3" as you had to work around it as you did above

@orta
CocoaPods member
orta commented Apr 4, 2013

( this change happened because we used to let subspecs inherit source paths but now don't )

@orta orta closed this Apr 4, 2013
@aneilbaboo

Thanks - this fixed the problem for me.

@fabiopelosin
CocoaPods member

Still CP is broken with pre-release podspecs.

@fabiopelosin fabiopelosin reopened this Apr 5, 2013
@fabiopelosin
CocoaPods member

Proper support should have been added in CocoaPods/Core@41444b3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.