美文网首页
cocoapods搜索库失败

cocoapods搜索库失败

作者: 星空WU | 来源:发表于2020-05-24 15:14 被阅读0次

1、更新cocoapoads到最新版本:sudo gem update --system

2、在Podfile文件中添加source源source 'https://github.com/CocoaPods/Specs.git'

3、执行pod repo remove trunk移除默认的trunk源,

4、如果执行完第三步后搜索库还是失败,建议再尝试第二套方案,如下:

        4.1 移除master仓库源

                pod repo remove master

        4.2 进入.cocopoads的仓库文件夹下

                cd ~/.cocoapods/repos

        4.3  重新下载仓库到本地

                git clone --depth 1 https://github.com/CocoaPods/Specs.git master

        4.4 移除库搜索记录文件

                 rm ~/Library/Caches/CocoaPods/search_index.json

       4.5 执行pod search 命令

                pod search SDWebImage

相关文章

网友评论

      本文标题:cocoapods搜索库失败

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