ISO pod 使用

pod 安装 相关依赖包

新建podfile 文件

pod init

编辑podfile文件添加第三方库

// pod '第三方依赖库名', '版本号'
pod 'SDWebImageSwiftUI', '~> 3.1.1'

安装

pod install

pod install 安装会非常慢建议使用国内镜像源

// 查看镜像源
gem sources -l

// 更新
sudo gem update --system

// 删除
gem sources --remove https://rubygems.org/

// 替换为淘宝镜像
gem sources --add https://gems.ruby-china.com/

镜像源替换为国内镜像后依旧是存在部分包不能下载或者下载慢的情况这里建议配置git 代理

  • 使用命令设定git 的代理方式。
// socks代理:

git config --global http.proxy socks5://127.0.0.1:1080

git config --global https.proxy socks5://127.0.0.1:1080


// http/https代理

git config --global http.proxy http://127.0.0.1:8080

git config --global https.proxy https://127.0.0.1:8080


// 取消代理:
git config --global --unset http.proxy

git config --global --unset https.proxy

// 查看配置信息:

git config -l --global
  • 设置成功后在执行 pod install 即可下载。如果还是不成功可以多少几次。
posted @ 2022-03-17 09:52  影的记忆  阅读(70)  评论(0编辑  收藏  举报