pod search 报错

2020-01-16  本文已影响0人  SuperMan_Wang

执行 pod search af
报错 [!] Unable to find a pod with name, author, summary, or description matching af

先移除掉本地的master,在终端输入pod repo remove master
然后转到路径下,在终端输入cd ~/.cocoapods/repos
再把github上的spec下载下来,替换路径~/.cocoapods/repos目录下的master
接着在终端输入命令:git clone --depth 1 https://github.com/CocoaPods/Specs.git master,等待下载完毕

这时,就可以使用 pod search 了

上一篇 下一篇

猜你喜欢

热点阅读