低于1.0版本 pod使用
来源:互联网 发布:python运维 编辑:程序博客网 时间:2024/04/29 11:10
In March, CocoaPods hit an unfortunate problem with our Specs Repo being rate limited.
We announced that we were planning on Sharding the Specs Repo, but were hesitant to do it instantly. Now over six months later we are planning on running the scripts.
- If you are using CocoaPods
1.x
- you should not see any changes. - If you are using CocoaPods
0.39
and below, you will see an error saying that your version of CocoaPods is not supported. Previous to this, our minimum version was0.32
.
For people who want to continue using 0.x versions, we will be replicating the Specs repo from the commit before the repo was sharded. This means you can add:
source "https://github.com/CocoaPods/Old-Specs"
To the top of your Podfile, and CocoaPods will only use the archived repo, instead of using the new repo structure. You will also need to set your local Specs repo to a version before the transition:
cd ~/.cocoapods/repos/master/git fetch origin mastergit checkout v0.32.1
To run pod install
, you will also need to use --no-repo-update
.
We do not have the resources to maintain multiple versions of CocoaPods in our spare time, and so we recommend that instead of doing the above, you migrate to the latest versions of CocoaPods in your projects.
We are planning to do it on Friday November the 11th, so there will be scheduled downtime on pushing new Pods to Trunk during the process of updating and verifying that it was successful.
使用Bundle管理Cocoapods版本
Cocoapods将Rails的Gem思想成功的迁移到了OSX中,让iOS和MacOS也能快速的管理第三方依赖。
然而,用久了发现一个很尴尬的问题——Cocoapods还不是很完善,因此更新频率很大,虽然我经常更新,但是他对旧版本的Cocoapods兼容性并不好。
例如,我有一个项目是用0.16版本的Cocoapods开发的,过了一段时间,需要对这个项目进行更新,在运行pod install
时会出现各种问题,原因是我用新版本的pod来安装旧版本的podfile.lock
,虽然官方也尽量在兼容旧版本,但不可避免还是会出现各种问题,例如——用法过期并移除……
这时候想到,进行Rails开发中,用Bundle进行Gem管理,而Cocoapods本身就是一个Gem,那能不能用Bundle来管理Cocoapods呢?
我们先试着在项目根目录下,创建Gemfile文件:
Gemfile执行bundle install
:
用gem list
看看本地有哪几个版本cocoapods:
现在试试能否用旧版本的cocoapods:
退出项目文件夹,去其他文件夹试试会不会自动切换到新版本:
成功!
发现有人直接用pod --version
没效果,可能是他不是使用最新版本的RVM,则需要手动调用bundle:
- 低于1.0版本 pod使用
- [iOS]解决pod search的仓库版本低于github仓库版本的方法
- pod search XXX 库版本低于 Github 上库最新版本
- 在版本低于android21下使用material progressbar风格的进度条
- 怎么让提示使用低于IE8的人 升级浏览器版本
- 版本低于1.7的jQuery过滤用户输入数据所使用的正则表达式存在缺陷
- 配置Cocoapods 新版本Xcode 7.3 pod版本1.0.1
- 用jquery判断浏览器低于ie6版本
- bootstraps对于低于IE9版本的支持
- 使用 pod install 还是 pod update ?
- 使用 pod install 还是 pod update ?
- 使用 pod install 还是 pod update ?
- 如何使用POD
- iOS pod命令使用
- pod 安装使用
- IOS pod使用笔记
- pod安装和使用
- 使用CocoaPods创建Pod
- js中通过Object.prototype.toString方法----精判断对象的类型
- linux环境下 java nio 文件名 乱码 utf-8 gbk
- java练习——实现系统入口程序
- 自定义控件 模板控件
- mysql 数据库函数
- 低于1.0版本 pod使用
- 3DES加解密-ZipCompressor
- 图片轮播
- N
- 0-1背包问题
- Androidstudio 导入mode 报错:"Manifest merger failed with multiple errors, see logs"
- mybatis查询时间段sql语句
- 个人笔记 github
- java 根据日期计算星期几