我正在使用OS X El Capitan,使用VMWare版本10.11.4
我可以使用sudo gem install cocoa pods
我想在我的项目中使用Firebase
并遵循官方网站上提到的指南。
在pod安装上,我收到以下错误
pod install --verbose
Preparing
Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`.
(/usr/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
)
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/sources_manager.rb:35:in `rescue in find_or_create_source_with_url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/sources_manager.rb:38:in `find_or_create_source_with_url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:654:in `block in sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:653:in `map'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:653:in `sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:144:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:114:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/install.rb:37:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
到目前为止我尝试了什么
去〜/ .cocoapods / repos并执行以下命令
git clone https://github.com/CocoaPods/Specs.git master
得到错误
Cloning into 'master'...
remote: Counting objects: 798955, done.
remote: Compressing objects: 100% (26/26), done.
~/.cocoapods/repos 9% (73183/798955), 14.57 MiB | 113.00 KiB/s
在上面一行后,它永远挂起,活动监视器上没有网络活动
此外,我通过执行
增加了缓冲区大小git config --global http.postBuffer 157286400
答案 0 :(得分:4)
这是一个连接问题。 要解决此问题,您必须转到VM设置以桥接物理连接。
VMware Player - &gt;可移动设备 - &gt;网络适配器 - &gt;设置
您将找到网络连接并检查两者
桥接:直接连接到物理网络
复制物理网络连接状态(如果您使用的是笔记本电脑)。
检查以下链接以获取详细信息:
答案 1 :(得分:0)
克隆到&#39; master需要一些时间......你应该等几分钟才能完成它。
答案 2 :(得分:0)
我不确定这个特定的错误,但是我在以下两种情况中都解决了类似的错误:
通过Windows操作系统下载所需的库,然后复制该库
在VMware上 maciOS 。 (尽管下载仍然需要很长时间,大约一天)
升级我的 RAM并获得12GB的ram并使用ssd hard 。这样很容易 使用VMWare进行开发