Pod install failed unexpectedly #1544

Closed
TimWachter opened this Issue Nov 4, 2013 · 1 comment

Projects

None yet

3 participants

@TimWachter

Report

  • What did you do?
    Do a pod install. We have 2 private pods in this project. I added them both via "pod repo add {repo name} {server}:~/{repo name}.git". For reference, git clone {server}:~/{repo name}.git works. (As you might guess from the stack trace, one of which is a push notification handler library.)
    I assume this is my own fault, but maybe you can handle this more gracefully. It could also very well be that I'm running a newer version of CocoaPods then the repo is.

  • What did you expect to happen?
    CocoaPods to install

  • What happened instead?
    It failed

Stack

   CocoaPods : 0.27.1
        Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
    RubyGems : 2.0.3
        Host : Mac OS X 10.9 (13A603)
       Xcode : 5.0.1 (5A2053)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : {Repo name 1} - {server address}:~/{Repo name 1}.git @ 80276e21a8a3da93bf8a3e931cc642bcb58985c9
               {Repo name 2} - {server address}:~/{Repo name 2}.git @ 45f680072b717f4dfc006bb30492caddd3633df8
               master - https://github.com/CocoaPods/Specs.git @ ee01a4e1e9c9699bf659a0cba3cf84f2dcbd4be7

Podfile

platform :ios, '5.1'

pod 'AFNetworking', '~> 1.1.0'
pod 'Reachability', '3.1.0'
pod 'OHAttributedLabel', '3.4.1'
pod 'SMPageControl', '1.0'
pod '{Repo name 1}', '1.1.0'
pod '{Repo name 2}', '1.0.1'
pod 'FlurrySDK', '4.2.3'
pod 'MBProgressHUD', '~> 0.7'

# Debugging libs:
# pod 'PonyDebugger', '0.3.0'
pod 'TestFlightSDK', '1.2.4.beta'
pod 'Reveal-iOS-SDK', '0.9.1'
# pod 'XRay', '~> 1.2'

target :{Project name}tests, :exclusive => true do
    pod 'GHUnitIOS', '0.5.6'
end

Error

ArgumentError - Malformed version number string UDID-replacement
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.27.1/lib/cocoapods-core/vendor/version.rb:189:in `initialize'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.27.1/lib/cocoapods-core/version.rb:62:in `initialize'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.27.1/lib/cocoapods-core/source.rb:93:in `new'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.27.1/lib/cocoapods-core/source.rb:93:in `block in versions'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.27.1/lib/cocoapods-core/source.rb:91:in `map'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.27.1/lib/cocoapods-core/source.rb:91:in `versions'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.27.1/lib/cocoapods-core/specification/set.rb:139:in `block in versions_by_source'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.27.1/lib/cocoapods-core/specification/set.rb:138:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.27.1/lib/cocoapods-core/specification/set.rb:138:in `versions_by_source'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.27.1/lib/cocoapods-core/specification/set.rb:118:in `versions'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.27.1/lib/cocoapods-core/specification/set.rb:106:in `required_version'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.27.1/lib/cocoapods-core/specification/set.rb:88:in `specification'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/resolver.rb:157:in `block (2 levels) in find_dependency_specs'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/user_interface.rb:113:in `message'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/resolver.rb:152:in `block in find_dependency_specs'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/resolver.rb:148:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/resolver.rb:148:in `find_dependency_specs'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/resolver.rb:65:in `block (2 levels) in resolve'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/user_interface.rb:52:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/resolver.rb:63:in `block in resolve'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/resolver.rb:62:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/resolver.rb:62:in `resolve'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:297:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/user_interface.rb:52:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:295:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:57:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:171:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:94:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/user_interface.rb:52:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:93:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:86:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/command/project.rb:38:in `run_install_with_update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/command/project.rb:68:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.3.2/lib/claide/command.rb:206:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/command.rb:51:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/bin/pod:19:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'
@alloy
CocoaPods member

It sounds like the repos you’ve added do not match the format required for a spec repo. It’s not clear to me what exactly are the repos that you’ve added, are these actually spec repos or are these the actual lib repos? If the latter, then that’s the problem and you should refer to the following guides:

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