问题描述:
通过Homebrew安装cocoapods时,输入命令行
brew install cocoapods
出现如下报错:
zsh: command not found: brew
zsh:找不到命令:brew
问题解决:
使用以下命令,重新安装Homebrew.
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
选择中科大下载源,输入开机密码.
输入Y继续克隆Core等(不需要可以不克隆),选择中科大国内源国内镜像.
重启终端.输入
brew install cocoapods
发现可以成功下载cocoapods了!
鸣谢:https://blog.csdn.net/Darling_qi/article/details/122239824
- cocoapods Homebrew command 方法 foundcocoapods homebrew command方法 command方法found not phasescriptexecution cocoapods archive command git directory homebrew command command conda found bash command found nvcc not command docker found bash pyinstller command问题found command python found mac chaosblade-box chaosblade command found