无法连接到github.com端口443:终端MacBook中的连接被拒绝

时间:2019-02-11 12:57:36

标签: xcode git macos terminal carthage

嗨,我正在尝试使用Git Desktop Client使用Https克隆Bitbucket iOS项目。它可以很好地克隆到本地计算机。但是当我尝试通过Carthage命令安装一些依赖项时:

carthage bootstrap --platform iOS

我在终端中遇到以下错误:我正在公司代理工作:

MacLions-MacBook-Pro:ios MacLions$ carthage bootstrap --platform iOS
*** Checking out dashboard at "v0.2.1"
*** Checking out credential-recovery at "v0.2.1"
*** Checking out Alamofire at "4.8.1"
*** Checking out secureDataStorage at "v0.0.2"
*** Cloning Alamofire
*** Cloning info-recovery
A shell task (/usr/bin/env git clone --bare --quiet https://github.com/Alamofire/Alamofire.git /Users/MacLions/Library/Caches/org.carthage.CarthageKit/dependencies/Alamofire) failed with exit code 128:
fatal: unable to access 'https://github.com/Alamofire/Alamofire.git/': Failed to connect to github.com port 443: Connection refused

我尝试在git中设置代理:

Getting git to work with a proxy server

但仍然没有成功

1 个答案:

答案 0 :(得分:0)

我不是Mac用户。 Just Goodled并找到了一些答案。 删除~/Library/Caches/org.carthage.CarthageKit会有所帮助。
参考-https://github.com/Carthage/Carthage/issues/694
这个post可能会为您提供帮助。

相关问题