mac常用命令(cocoapods)

1.查看镜像:gem sources -l
2.查看pod版本:pod --version
3.查看repo:pod repo
4.安装pod:sudo gem install cocoapods
5.卸载pod:sudo gem uninstall cocoapods
6.重置代理:git config --global --unset http.proxy
7.git config --global --unset https.proxy
8.查看ruby:ruby --version
9.编辑host:sudo vim /etc/hosts
10.查看本地安装过的cocopods相关东西:gem list --local | grep cocoapods
11.删除cocoapods-core:sudo gem uninstall cocoapods-deintegrate
12.删除cocoapods-downloader:sudo gem uninstall cocoapods-downloader
13.删除cocoapods-plugins:sudo gem uninstall cocoapods-plugins
14.删除cocoapods-search:sudo gem uninstall cocoapods-search
15.删除cocoapods-trunk:sudo gem uninstall cocoapods-trunk
16.删除cocoapods-try:sudo gem uninstall cocoapods-try
17.只想单独更新某个第三方到本地Cocoapods库中最新版本,不更新其他本地第三方:pod update 第三方名字 --verbose --no-repo-update
例如:pod update AFNetworking --verbose --no-repo-update
18.只想给项目添加新的第三方,不更新本地已经存在的第三方:pod install --verbose --no-repo-update
19.更新pod本地库: pod repo update

你可能感兴趣的:(mac常用命令(cocoapods))