美文网首页Flutter
pod setup 速度慢 终极解决办法

pod setup 速度慢 终极解决办法

作者: Lee馍馍 | 来源:发表于2018-08-08 16:05 被阅读25次

    1、到https://github.com/CocoaPods/Specs.git网址 把文件clone下来,默认文件夹名字为Specs-master

    2、前往文件夹 ~/.cocoapods/repos

    3、终端cd到你的工程目录中执行 pod setup,等待一会,等到开始下载的时候,会发现在~/.cocoapods/repos 下面多一个master文件,这时,需要复制master下面的.git 文件夹到Specs-master下面,同时停止pod setup

    4、Specs-master文件夹名字修改为master,并替换~/.cocoapods/repos 下的master文件夹

    5、直接可以正常执行pod install 等命令

    --------------------工程中用到的第三方库找不到-------------------

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

    终端命令:

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

    pod search AFNetworking

    相关文章

      网友评论

        本文标题:pod setup 速度慢 终极解决办法

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