美文网首页
CocoaPod 报错[!] Unable to find a

CocoaPod 报错[!] Unable to find a

作者: 酸汤猪脚西米露 | 来源:发表于2020-08-16 00:50 被阅读0次

    最近新换电脑 要重新配置开发环境 下载cocoapod的时候 安装成功后 尝试搜索 出现报错 提示找不到任何相关的库

    [!] Unable to find a pod with name, author, summary, or description
    

    打开~/.cocoapods/repos/master文件夹后 会发现下载好的pod文件夹下 没有索引文件

    解决方案

    手动clone cocoapod的官方space 到本地

    git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
    

    如果速度过慢 可以考虑切换gem source到国内taobao或osc镜像源

    相关文章

      网友评论

          本文标题:CocoaPod 报错[!] Unable to find a

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