设置CocoaPods主存储库(Sierra) [英] Setting up CocoaPods master repo (Sierra )

查看:53
本文介绍了设置CocoaPods主存储库(Sierra)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到Sierra 10.12之后,从头开始全新安装,我无法使用cocoapods安装库,方法是进行 pod install安装:设置CocoaPods repo master。
我希望你能帮助我。
谢谢。

After upgrading to Sierra 10.12, doing a clean install from scratch, I am not able to install libraries using cocoapods, by making the "pod install" I get this: "Setting up CocoaPods repo master". I hope you can help me. Thank you.

推荐答案

在我的第一次安装中,我也遇到了同样的问题,花费了太多时间设置主存储库。您可以通过活动监视器看到它实际上正在下载,但是看来从他们的服务器连接很慢。

In my first installation, I got the same problem too, it takes too much time in "setting up master repo". You can see it through "activity monitor" that it actually is downloading, but it seems the connection is slow from their server.

尝试以下步骤,可以解决我的问题:

Try these following steps, it solves my problem:

1. pod setup

它将再次设置主服务器,不要等待,请继续以下步骤

It will do " setting up master " again, don't wait, continue these steps below

2. Ctrl +C
3. pod repo remove master
4. cd ~/.cocoapods/repos 
5. git clone --depth 1 https://github.com/CocoaPods/Specs.git master

我大约需要5分钟(我认为这取决于互联网连接),然后我可以进行 pod安装。

It takes around 5 minutes for me (I think it depends on internet connection), then I can do "pod install".

这篇关于设置CocoaPods主存储库(Sierra)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆