建立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 |