• CocoaPods停在Analyzing dependencies的解决方案


    解决办法:

    1: 换镜像索引库

    国内有人建立了cocoapods的索引库镜像,可以通过如下命令更改镜像:

      pod repo remove master
      pod repo add master https://镜像地址
      pod repo update

    我自己一向只喜欢官方源,所以这个方法我没用过,地址还请各位自行google

    2: 删除镜像后重新下载[推荐]

    对于这个方法为什么管用,我也不知道,据说是和xcode有某种关系,在stackoverflow上看到的。按说install时候下载不下来,这个方法也应该不管用才对。不过亲测好用。各位可以试试:

      pod repo remove master #删除镜像
      pod setup #重新下载,可能需要等一段时间

    这时候在执行pod install或者update,就可以顺利通过了,当然,还是要等的。

    Last login: Thu Sep 24 16:29:08 on ttys000

    nie-xiao-bo-mac-pro:~ mac$ cd /Users/mac/Desktop/paymodel/test/cocopodsTest/CocopodsTest 

    nie-xiao-bo-mac-pro:CocopodsTest mac$ pod repo remove master

    Removing spec repo `master`

    nie-xiao-bo-mac-pro:CocopodsTest mac$ pod setup

    Setting up CocoaPods master repo

    CocoaPods 0.39.0.beta.4 is available.

    To update use: `gem install cocoapods --pre`

    [!] This is a test version we'd love you to try.

    For more information see http://blog.cocoapods.org

    and the CHANGELOG for this version http://git.io/BaH8pQ.

    Setup completed

    nie-xiao-bo-mac-pro:CocopodsTest mac$ pod install

    Analyzing dependencies

    CocoaPods 0.39.0.beta.4 is available.

    To update use: `gem install cocoapods --pre`

    [!] This is a test version we'd love you to try.

    For more information see http://blog.cocoapods.org

    and the CHANGELOG for this version http://git.io/BaH8pQ.

    Downloading dependencies

    Installing Reachability (3.0.0)

    Generating Pods project

    Integrating client project

    [!] Please close any current Xcode sessions and use `CocopodsTest.xcworkspace` for this project from now on.

    nie-xiao-bo-mac-pro:CocopodsTest mac$

    3: 禁止更新索引

    通过如下参数,可以在安装或升级时跳过索引文件的更新,不过带来的问题也很麻烦,你可能下载不到新版本的第三方库(因为索引是旧的)。

      pod install --verbose --no-repo-update 
      pod update --verbose --no-repo-update

  • 相关阅读:
    word设置的密码忘了怎么办?
    Navicat Report Viewer 设置 HTTP 的方法
    如何处理Navicat Report Viewer 报表
    excel密码忘记了怎么办
    Beyond Compare文本比较搜索功能详解
    Popular Cows POJ
    Problem B. Harvest of Apples HDU
    网络流模型整理
    The Shortest Statement CodeForces
    Vasya and Multisets CodeForces
  • 原文地址:https://www.cnblogs.com/niexiaobo/p/4836060.html
Copyright © 2020-2023  润新知