美文网首页
CocoaPods 安装

CocoaPods 安装

作者: 好大一棵树6 | 来源:发表于2023-03-16 20:38 被阅读0次

1、升级 Ruby 环境

gem update --system
//or 
sudo gem update --system

2、更换 Ruby 镜像

查看镜像

gem sources -l

移除旧的 Ruby 镜像

gem sources --remove https://gems.ruby-china.org/

添加国内最新镜像源

gem sources -a https://gems.ruby-china.com/

查看结果

gem sources -l
//结果
*** CURRENT SOURCES ***
https://gems.ruby-china.com/

3、安装 CocoaPods

sudo gem install cocoapods

or 
sudo gem install -n /usr/local/bin cocoapods

查看结果

pod setup
//结果
Setup completed

4、使用

一般的命令

pod init;
pod install;
pod update;
pod search xx
...

相关文章

网友评论

      本文标题:CocoaPods 安装

      本文链接:https://www.haomeiwen.com/subject/mzqxzktx.html