美文网首页
pod search 报错

pod search 报错

作者: SuperMan_Wang | 来源:发表于2020-01-16 10:38 被阅读0次

执行 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 了

相关文章

网友评论

      本文标题:pod search 报错

      本文链接:https://www.haomeiwen.com/subject/oncfzctx.html