建立Podfile文件ruby
1 |
pod init |
使用命令打开Podfile文件spa
1 |
open -a Xcode Podfile |
搜索pod 库code
1 |
pod search 库名 |
更新本地Repo库rem
1 |
pod repo update |
安装pod 库get
1 |
pod install |
升级pod 库it
1 |
pod update |
检查ruby源io
1 |
gem sources -l |
删除原有ruby源table
1 |
gem sources -remove https://rubygems.org/ |
添加你找到的可用镜像源class
1 |
gem sources -a http://rubygems-china.oss.aliyuncs.com |
安装cocoapods基础
1 |
sudo gem install cocoapods |
查看cocoapods当前版本号
1 |
pod --version |
更新gem到最新版本
1 |
sudo gem update --system |
更新cocoapods版本
1 |
sudo gem update cocoapods |
说明Cocoapods在将它的信息下载到 ~/.cocoapods里;
cd 到该目录里
查看 repo list
1 |
pod repo list |
查看文件大小
1 |
du -sh |
查看安装列表
1 |
pod list |