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

pod install crashes when a spec repository doesn't have a remote #2590

Closed
kylef opened this issue Oct 4, 2014 · 2 comments
Closed

pod install crashes when a spec repository doesn't have a remote #2590

kylef opened this issue Oct 4, 2014 · 2 comments
Labels
d1:easy An easy ticket that is a good start for first-time contributors s2:confirmed Issues that have been confirmed by a CocoaPods contributor t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!

Comments

@kylef
Copy link
Contributor

kylef commented Oct 4, 2014

What did you do?

Ran pod install. Note the repositories listed below, it doesn't have a remote.

$ git remote -v
$ pwd
/Users/kylef/.cocoapods/repos/example

What did you expect to happen?

I expected to reproduce #2472.

What happened instead?

I got some other lame exception.

Stack

   CocoaPods : 0.34.1
        Ruby : ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
    RubyGems : 2.0.14
        Host : Mac OS X 10.10 (14A361c)
       Xcode : 6.0.1 (6A317)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : artsy - https://github.com/artsy/Specs @ 51e1f8a7f71a2d97c8c6e39db5879f32ec8c4588
               example -  @ 991f6f0757fcaffb7da6f25e55086ef991e603a8
               master - https://github.com/CocoaPods/Specs.git @ 5299c097caebe5e774005520fa5d552554b8569c

Plugins

cocoapods-deintegrate  : 0.1.1
cocoapods-doctor       : 0.1.0
cocoapods-open         : 0.0.8
cocoapods-plugins      : 0.3.1
cocoapods-podfile_info : 0.0.1
cocoapods-trunk        : 0.2.0
cocoapods-try          : 0.4.1

Podfile

platform :ios, '8.0'

source 'https://github.com/CocoaPods/Specs.git'

target 'Example' do

end

target 'ExampleTests' do

end

Error

NoMethodError - undefined method `downcase' for nil:NilClass
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/sources_manager.rb:386:in `block in source_with_url'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/sources_manager.rb:386:in `each'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/sources_manager.rb:386:in `find'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/sources_manager.rb:386:in `source_with_url'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/sources_manager.rb:37:in `find_or_create_source_with_url'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/installer/analyzer.rb:385:in `block in sources'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/installer/analyzer.rb:384:in `map'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/installer/analyzer.rb:384:in `sources'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/installer/analyzer.rb:172:in `block in update_repositories_if_needed'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/user_interface.rb:49:in `section'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/installer/analyzer.rb:171:in `update_repositories_if_needed'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/installer/analyzer.rb:48:in `analyze'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/installer.rb:184:in `analyze'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/installer.rb:106:in `block in resolve_dependencies'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/user_interface.rb:49:in `section'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/installer.rb:105:in `resolve_dependencies'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/installer.rb:90:in `install!'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/command/project.rb:71:in `run_install_with_update'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/command/project.rb:101:in `run'
/Users/kylef/gems/gems/claide-0.7.0/lib/claide/command.rb:271:in `run'
/Users/kylef/gems/gems/cocoapods-0.34.1/lib/cocoapods/command.rb:48:in `run'
/Users/kylef/gems/gems/cocoapods-0.34.1/bin/pod:33:in `<top (required)>'
/Users/kylef/gems/bin/pod:23:in `load'
/Users/kylef/gems/bin/pod:23:in `<main>'

Obligatory 🌈.

@kylef kylef added t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome! d1:easy An easy ticket that is a good start for first-time contributors s2:confirmed Issues that have been confirmed by a CocoaPods contributor labels Oct 4, 2014
@joshryan
Copy link

joshryan commented Oct 7, 2014

After doing a gem update to 0.34.1, I'm getting this same error for any pod update / installs on working directories that for sure DO have a remote properly set. I've tried it on about a dozen working directories with Podfiles that worked just fine yesterday.

Stack

   CocoaPods : 0.34.1
        Ruby : ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13]
    RubyGems : 2.4.2
        Host : Mac OS X 10.9.5 (13F34)
       Xcode : 6.0.1 (6A317)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ d17fcf8e6d4d429700a7794b797ad1f273166307

Plugins

cocoapods-plugins : 0.3.1
cocoapods-trunk   : 0.2.0
cocoapods-try     : 0.4.1

Error

NoMethodError - undefined method `downcase' for nil:NilClass
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/sources_manager.rb:385:in `block in source_with_url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/sources_manager.rb:385:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/sources_manager.rb:385:in `find'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/sources_manager.rb:385:in `source_with_url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/sources_manager.rb:37:in `find_or_create_source_with_url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/installer/analyzer.rb:385:in `block in sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/installer/analyzer.rb:384:in `map'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/installer/analyzer.rb:384:in `sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/installer/analyzer.rb:172:in `block in update_repositories_if_needed'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/user_interface.rb:49:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/installer/analyzer.rb:171:in `update_repositories_if_needed'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/installer/analyzer.rb:48:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/installer.rb:184:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/installer.rb:106:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/user_interface.rb:49:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/installer.rb:105:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/installer.rb:90:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/command/project.rb:71:in `run_install_with_update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/command/project.rb:155:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:271:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/lib/cocoapods/command.rb:48:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.1/bin/pod:33:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'

@kylef
Copy link
Contributor Author

kylef commented Oct 7, 2014

Fixed by CocoaPods/Core@212f3c0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
d1:easy An easy ticket that is a good start for first-time contributors s2:confirmed Issues that have been confirmed by a CocoaPods contributor t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!
Projects
None yet
Development

No branches or pull requests

2 participants