我从一个git repo克隆一个项目,但当我执行pod安装时,我看到的第一行是“设置CocoaPods主repo”,之后我看不到任何更多的东西,控制台停在那里。

我不知道发生了什么。有人知道这里发生了什么吗?CocoaPods为何止步于此?


当前回答

吊舱设置工作,应该只需要10分钟的坚实的连接。然后运行:pod install——verbose,你应该会看到运行依赖管理器时通常会看到的所有注释。

希望这能有所帮助

其他回答

可可荚-减少等待时间到10%(在Mac OS上)

1-在你的项目文件夹中输入pod设置(首先你必须在项目文件夹中)从Mac OS的终端。

2- CTRL+z停止后,它创建主目录(文件夹)[你可以看到它在你的可可豆文件夹位置:~/.cocoapods/repos]

下载。zip https://github.com/CocoaPods/Specs 主分支(它的301 MB),提取它。大约需要5-10分钟

4.将内容复制到~/。Cocoapods /repos(现在你只需要复制主文件夹中的内容,所以要确保主文件夹已经用pod setup命令创建了)

5-一旦你复制它(或者我应该说移动,拖放复制将永远,因为它非常大),然后你可以做pod安装-no-repo-update 6-你的pod在pod文件现在将开始安装 这是一个截图

以上这些对我都不起作用,所以下面的方法起作用了:

pod setup
Ctrl +C
pod repo remove master
cd ~/.cocoapods/repos 
git clone https://github.com/CocoaPods/Specs master

一旦完成,它就起作用了。

干杯!

从cocoapods 1.7.2开始,你可以使用cdn而不是github。它燃烧得很快,挂不起来。从cocopods 1.8.0开始,cdn是默认的。

To use the CDN source in your Podfile: If you don't have private specs: source 'https://cdn.cocoapods.org/' If you have private specs: source 'https://github.com/artsy/Specs.git' - source 'https://github.com/CocoaPods/Specs.git' + source 'https://cdn.cocoapods.org/' Doing this will break your Podfile.lock, so you are likely to need to run pod update to see the changes (be careful, this may update your Pods also). If you have a CI setup, it is recommended to cache the new repo dir as it is very small and would save even more time. With 1.7.2 it should be located at ~/.cocoapods/repos/cocoapods- (yes, with a -), but we're looking to improve the naming in an upcoming release.

更多信息:

CocoaPods 1.7.2 -主Repo CDN完成! CocoaPods 1.8测试版来了!

尝试这个命令来跟踪它的工作。

while true; do
  du -sh ~/.cocoapods/
  sleep 3
done

问题是你没有安装命令行工具,我相信。 尝试在终端运行:

sudo gem update --system

然后从苹果下载命令行工具 只需搜索“命令行工具”并下载适合您的操作系统的版本。 一旦你安装了它,在终端运行:

sudo gem install cocoapods
pod setup