ios - 无法安装 pod( fatal error : unable to access 'https://github.com/CocoaPods/Specs.git/' )

标签 ios iphone xcode git cocoapods

我正在尝试使用命令 pod install 并且总是这样:

$ pod setup

OR

$ sudo pod setup

Setting up CocoaPods master repo
[!] Pod::Executable clone 'https://github.com/CocoaPods/Specs.git' master

Cloning into 'master'...
fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': Failed connect to     github.com:443; Operation timed out

/Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:217:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:210:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/bin/pod:24:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'

我不知道这是关于什么的。有人能帮我吗?这是我第一次尝试在 OS X Mavericks 上使用 CocoaPods 做任何事情。

谢谢!

最佳答案

首先请检查您的网络,您可以在终端下直接使用curlgit clone来检查

如果你有其他问题你可以试试gem uninstall claide然后安装

或者你可以试试ruby 1.9

cocoapods 0.29 和 claide 0.4.0 在我的 ruby​​ 1.9 环境下工作正常

您可以使用 rvm 来处理不同的 ruby​​ 环境

关于ios - 无法安装 pod( fatal error : unable to access 'https://github.com/CocoaPods/Specs.git/' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21158831/

相关文章:

ios - NSNotificationCenter 的帖子导致 "EXC_BAD_ACCESS"异常

html - 样式在 iOS 手机差距应用程序中无法正确显示

ios - 如何设置原型(prototype) UICollectionViewCell 的大小

ios - 尝试理解引用循环

iphone - NSString "initWithBytesNoCopy:length:encoding:freeWhenDone:"可以修改输入 "bytes"吗?

ios - iOS 应用如何知道最终用户的语言选择?

iphone - 多个 UILabels 显示修饰的 XML 标记

ios - 如何在 XCode 中预览 Storyboard的不同 View Controller

swift - 在 Swift 单元测试中创建临时文件

objective-c - 求计算器中根底的幂