zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    LeetCode T98.Validate Binary Search Tree/验证二叉搜索树
    LeetCode T45.Jump Game Ⅱ/跳跃游戏Ⅱ
    LeetCode T53.Maximum Subarray/最大子序和
    LeetCode T3.Longest Substring Without Repeating Characters/无重复最长子串
    LeetCode T21.Merge Two Sorted Lists/合并两个有序链表
    LeetCode T202.Happy Number/寻找快乐数
    LeetCode T1095.Find in Mountain Array/山脉数组中查找目标值
    XCTF-WEB—i-got-id-200:perl网页文件+ARGV上传造成任意文件读取
    思维导图爆破
    UNCTF2020-Reverse:re_checkin
  • 原文地址:https://www.cnblogs.com/niexiaobo/p/4836060.html
Copyright © 2011-2022 走看看