1.gem install cocoapods
1 | ERROR: While executing gem ... (Errno::EPERM) |
用下面命名安装
1 | sudo gem install -n /usr/local/bin cocoapods |
2.更换更新数据源国内镜像,每天都更新code.net
1 | pod repo remove master |
安装自己的私有仓库pod
1 | pod repo add sdkMaster https://gitlab.coding.net/Specs.git |
3.常用更新安装命名,不进行本地库更新
更新pod
pod update --verbose --no-repo-update
安装pod命令
pod install --verbose --no-repo-update
4.安装和卸载pod
1 | sudo gem uninstall cocoapods 卸载 |
5.pod错误
错误描述cocoapods: Failed to connect to GitHub to update the CocoaPods/Specs specs repo
更新pod和ruby
1 | brew install ruby //安装 |