首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在虚拟机上安装CocoaPods

在虚拟机上安装CocoaPods
EN

Stack Overflow用户
提问于 2016-08-29 05:55:38
回答 3查看 1.3K关注 0票数 2

我正在使用,10.11.4版使用VMWare

我可以使用sudo gem install cocoa pods安装宝石

我想在我的项目中使用Firebase,并遵循官方网站上提到的指导方针。

在吊舱安装上,我得到以下错误

代码语言:javascript
复制
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并执行以下命令

代码语言:javascript
复制
git clone https://github.com/CocoaPods/Specs.git master

得到了错误

代码语言:javascript
复制
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

在上线之后,它将永远挂起,在活动监视器上没有任何网络活动。

此外,我还通过执行

代码语言:javascript
复制
git config --global http.postBuffer 157286400
EN

回答 3

Stack Overflow用户

发布于 2016-10-21 03:38:15

这是一个连接问题。要解决这个问题,您必须转到VM设置来桥接物理连接。

VMware播放器->可移动设备->网络适配器->设置

您将找到网络连接并检查两者

桥接:直接连接到物理网络

复制物理网络连接状态(如果使用的是膝上型计算机)。

有关详细信息,请查看以下链接:

https://pubs.vmware.com/workstation-9/index.jsp?topic=%2Fcom.vmware.ws.using.doc%2FGUID-826323AD-D014-475D-8909-DFA73B5A3A57.html

票数 4
EN

Stack Overflow用户

发布于 2016-08-29 06:22:01

克隆成“主人”需要一段时间..。你应该等几分钟才能完成它。

票数 0
EN

Stack Overflow用户

发布于 2019-06-16 10:49:59

我不确定这个特定的错误,但是我解决了类似的错误:

  1. 通过Windows操作系统下载所需库,然后复制库 到maciOS on VMware。(下载仍然需要很长时间,大约一天)
  2. 升级我的内存,得到12 my的内存,并使用ssd硬。这使得使用VMWare进行开发变得非常容易。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39199348

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档