首页 > 其他 > 详细

CocoaPods停在Analyzing dependencies的解决方案

时间:2015-09-24 19:05:22      阅读:347      评论:0      收藏:0      [点我收藏+]

解决办法:

 

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

 

CocoaPods停在Analyzing dependencies的解决方案

原文:http://www.cnblogs.com/niexiaobo/p/4836060.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!