Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决pod search出来的仓库版本低于github仓库版本的方法 #3

Open
dabing1022 opened this issue Dec 26, 2014 · 0 comments

Comments

@dabing1022
Copy link
Owner

dabing1022 commented Dec 26, 2014

问题描述

我们在用 Cocoapods 做第三方开源库管理的时候,有时候发现

$ pod search XXX

版本低于github上仓库的最新release版本 (注:XXX为仓库名称)

解决方法-->升级Cocoapods版本

查看当前系统Cocoapods版本命令:pod --version

升级方法

$ sudo gem update --system
$ gem sources --remove https://rubygems.org/ 
$ gem sources -a https://ruby.taobao.org/ 
$ sudo gem install cocoapods
$ pod setup

其中

$ gem sources --remove https://rubygems.org/ 
$ gem sources -a https://ruby.taobao.org/ 

这两句话可以省略,但我们在天朝,还是加上的好。国内网络原因(你懂的),如果使用原来的https://rubygems.org/,那么在sudo gem install cocoapods的时候,存放在 Amazon S3 上面的资源文件间歇性连接失败。

升级结束后再次pod --version,会发现 Cocoapods 版本号高于之前的版本,升级成功了。

再次

$ pod search XXX

OK,github仓库的最新版已经有了。

问题经过:[https://github.com/HeshamMegid/HMSegmentedControl/issues/77)(https://github.com/HeshamMegid/HMSegmentedControl/issues/77)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant