macOS 安装 Cocoapods 卡住

  1. 默认的安装是没有任何反馈的,所以可以添加参数--verbose查看具体的信息

  2. 切换中国源,

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

Homebrew Unknown command services

macOS运行brew services报错 …

➜  ~ brew services start jenkins-lts
==> Tapping homebrew/services
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...
error: could not lock config file /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services/.git/config: No such file or directory
fatal: could not set 'core.repositoryformatversion' to '0'
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-services /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services --origin=origin --template= --config core.fsmonitor=false` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/services` exited with 1.
阅读更多