CocoaPod
来源:互联网 发布:阿里数据分析师待遇 编辑:程序博客网 时间:2024/05/28 05:15
使用:
$ pod COMMAND
CocoaPods 是 Cocoa library 的包管理器.
命令:
+ cache Manipulate the CocoaPods cache+ init Generate a Podfile for the current directory.+ install Install project dependencies to Podfile.lock versions+ ipc Inter-process communication+ lib Develop pods+ list List pods+ outdated Show outdated project dependencies+ plugins Show available CocoaPods plugins+ repo Manage spec-repositories+ search Search for pods.+ setup Setup the CocoaPods environment+ spec Manage pod specs+ trunk Interact with the CocoaPods API (e.g. publishing new specs)+ try Try a Pod!+ update Update outdated project dependencies and create new Podfile.lock
选项(可选命令):
--silent Show nothing--version Show the version of the tool--verbose Show more debugging information--no-ansi Show output without ANSI codes--help Show help banner of specified command
cat Podfile
source ‘https://github.com/CocoaPods/Specs.git’
platform:ios,’8.0’
use_frameworks!
忽略所有pods中的警告
ignore all warnings from all pods
inhibit_all_warnings!
def pods #Swift pod 'Alamofire' pod 'Kingfisher' pod 'ObjectMapper', '~> 1.0' pod 'SwiftyJSON' pod 'Dollar' pod 'Cent' pod 'KeychainAccess', '~> 2.3.4' pod 'UIColor_Hex_Swift', '~> 2.0' pod 'RxSwift', '~> 2.2' pod 'RxCocoa', '~> 2.2' pod 'RxBlocking', '~> 2.2' pod 'XCGLogger' pod 'Swift_cURLCommand' pod 'SnapKit' pod 'BSImagePicker', '~> 2.2' #Objective-C pod 'YYText' pod 'SVProgressHUD', '~> 2.0-beta8' pod 'INTULocationManager'endtarget 'TSWeChat' do podsend
cat Podfile
platform:ios,’8.3’pod 'AFNetworking', '~> 3.0.0-beta.3'pod 'SDWebImage', '~> 3.7.3'pod 'SVProgressHUD', '~> 2.0-beta8'pod 'MJExtension', '~> 3.0.7'pod 'UMengSocial', '~> 4.3'use_frameworks!pod 'ReactiveCocoa', '~> 4.0.4-alpha-4’pod 'MJRefresh', '~> 3.1.0'pod 'DACircularProgress', '~> 2.3.1'pod 'NJKWebViewProgress', '~> 0.2.3'
Cocoapods的Podfile常见语法总结
下面都是引入库的语句:
> < >= <=
不解释 ~ > 从指定版本到倒数第二位版本号升1为止,比如 ‘~> 1.2.1’是指 1.2.1 <= 版本 < 1.3.0 pod ‘库名’, :podspec => ‘podspec文件路径’ 指定导入库的pod spec文件路径 pod ‘库名’, :git => ‘源码git地址’ 指定导入库的源码git地址 pod ‘库名’, :tag => ‘tag名’ 指定导入库的Tag分支阅读全文
0 0
- CocoaPod
- cocoapod
- CocoaPod
- CocoaPod
- CocoaPod 使用
- cocoapod 使用
- cocoapod 慢
- Cocoapod 升级
- CocoaPod 使用
- cocoapod 设置
- 关于 cocoapod
- cocoapod 安装
- cocoapod使用
- cocoapod 安装
- cocoaPod 升级
- CocoaPod使用
- Cocoapod安装
- CocoaPod常用命令
- 求各位帮我设计一个三极管开关电路(以SS8050)为例,具体要求看问题补充.多谢
- R数据结构
- 仿微信语音聊天
- Akka(11): 分布式运算:集群-均衡负载
- java 图上传
- CocoaPod
- 解决ISCROLL单击变双击的BUG
- [leetcode]62. Unique Paths(Java)
- 从远程分支获取代码到本地
- 八数码问题
- PriorityBlockingQueue的简单使用
- std::string------2017.6.27
- as_LiveTemplates
- java批量操作传参数二维数组赋值