错误详情

  1. [!] Error installing TOCropViewController
  2. [!] /usr/bin/git clone https://github.com/TimOliver/TOCropViewController.git /var/folders/bw/b718jv5j2z70fws0yw7rclp40000gp/T/d20210930-6768-hu9bgd --template= --single-branch --depth 1 --branch 2.5.5
  3. Cloning into '/var/folders/bw/b718jv5j2z70fws0yw7rclp40000gp/T/d20210930-6768-hu9bgd'...
  4. fatal: unable to access 'https://github.com/TimOliver/TOCropViewController.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

解决办法

打开 gitconfig

  1. open ~/.gitconfig

添加代理配置

  1. [remote "origin"]
  2. proxy = http://127.0.0.1:7890
  3. [http]
  4. proxy = http://127.0.0.1:7890
  5. [https]
  6. proxy = http://127.0.0.1:7890

这里的端口号修改为自己代理的端口号即可