cocoapods中的pod file介绍
来源:互联网 发布:文字特效软件 编辑:程序博客网 时间:2024/05/29 04:08
如何指定版本号
例如 AFNetworking
一个简单的podfile:
pod `AFNetworking`, `~> 1.0` 版本号可以是1.0,可以是1.1,1.9,但必须小于2
-个更简单的podfile:
pod `AFNetworking`, `1.0` // 版本号指定为1.0
一个更更简单的podfile:
pod `AFNetworking`, // 不指定版本号,任何版本都可以
一个复杂的podfile:
platform :ios, `6.0`inhibit_all_warnings!xcodeproj `MyProject`pod `ObjectiveSugar`, `~> 0.5`target :test do pod `OCMock`, `~> 2.0.1`endpost_install do |installer| installer.project.targets.each do |target| puts target.name endend
下面是podfile指定版本号时的逻辑运算符:
Besides no version, or a specific one, it is also possible to use logical operators:`> 0.1` Any version higher than 0.1 0.1以上`>= 0.1` Version 0.1 and any higher version 0.1以上,包括0.1`< 0.1` Any version lower than 0.1 0.1以下`<= 0.1` Version 0.1 and any lower version 0.1以下,包括0.1In addition to the logic operators CocoaPods has an optimisic operator ~>:`~> 0.1.2` Version 0.1.2 and the versions up to 0.2, not including 0.2 and higher 0.2以下(不含0.2),0.1.2以上(含0.1.2)`~> 0.1` Version 0.1 and the versions up to 1.0, not including 1.0 and higher 1.0以下(不含1.0),0.1以上(含0.1)`~> 0` Version 0 and higher, this is basically the same as not having it. 0和以上,等于没有此约束
0 0
- cocoapods中的pod file介绍
- cocoa pods安装到cocoapods pod file常用语法
- 删除cocoapods中的一些repo选项:pod repo remove xxx
- Cocoapods pod install
- 使用CocoaPods创建Pod
- CocoaPods pod install
- pod install 错误 .cocoapods/repos `open': No such file or directory
- CocoaPods pod install/pod update更新慢
- CocoaPods pod install/pod update 特别慢
- CocoaPods - pod install ,pod update的用法
- CocoaPods / Pod 安装简略步骤
- CocoaPods: Pod update/install 出错
- cocoapods pod install 卡死
- Cocoapods: 打造本地 pod 库
- Cocoapods pod update 报错
- CocoaPods创建自己的pod
- cocoapods pod install 没有xcworkspace
- CocoaPods创建自己的pod
- Python 错误处理
- 柴俊理金:退欧风波牵扯原油,黄金1280不温不火
- Android Studio打包全攻略---从入门到精通
- @Override
- 最长上升连续子序列
- cocoapods中的pod file介绍
- 实习杂记(23):ant里面condition属性测试
- Boost Thread 编程指南、Boost线程入门教程
- poj 1017贪心-装箱
- AFNetwoking 3.1 https请求相关
- 在32位Windows上扩展虚拟内存(Labview)
- MVC及Web API添加身份验证及错误处理的过滤器
- android studio 如何调用framework.jar在android.jar包之前
- Android上自定义View实现电子签名功能