[!] Error installing PromiseKit

[!] Error installing PromiseKit

pod install 的时候,PromiseKit这个框架更新报错

[!] Error installing PromiseKit
[!] /usr/bin/git -C /var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6 submodule update --init --recursive

Submodule 'Extensions/AVFoundation' (https://github.com/PromiseKit/AVFoundation) registered for path 'Extensions/AVFoundation'
Submodule 'Extensions/Accounts' (https://github.com/PromiseKit/Accounts.git) registered for path 'Extensions/Accounts'
Submodule 'Extensions/AddressBook' (https://github.com/PromiseKit/AddressBook.git) registered for path 'Extensions/AddressBook'
Submodule 'Extensions/Alamofire' (https://github.com/PromiseKit/Alamofire) registered for path 'Extensions/Alamofire'
Submodule 'Extensions/AssetsLibrary' (https://github.com/PromiseKit/AssetsLibrary.git) registered for path 'Extensions/AssetsLibrary'
Submodule 'Extensions/Bolts' (https://github.com/PromiseKit/Bolts.git) registered for path 'Extensions/Bolts'
Submodule 'Extensions/CloudKit' (https://github.com/PromiseKit/CloudKit.git) registered for path 'Extensions/CloudKit'
Submodule 'Extensions/CoreBluetooth' (https://github.com/PromiseKit/CoreBluetooth.git) registered for path 'Extensions/CoreBluetooth'
Submodule 'Extensions/CoreLocation' (https://github.com/PromiseKit/CoreLocation.git) registered for path 'Extensions/CoreLocation'
Submodule 'Extensions/EventKit' (https://github.com/PromiseKit/EventKit.git) registered for path 'Extensions/EventKit'
Submodule 'Extensions/Foundation' (https://github.com/PromiseKit/Foundation.git) registered for path 'Extensions/Foundation'
Submodule 'Extensions/HealthKit' (https://github.com/PromiseKit/PMKHealthKit) registered for path 'Extensions/HealthKit'
Submodule 'Extensions/HomeKit' (https://github.com/PromiseKit/HomeKit.git) registered for path 'Extensions/HomeKit'
Submodule 'Extensions/MapKit' (https://github.com/PromiseKit/MapKit.git) registered for path 'Extensions/MapKit'
Submodule 'Extensions/MessagesUI' (https://github.com/PromiseKit/MessagesUI.git) registered for path 'Extensions/MessagesUI'
Submodule 'Extensions/OMGHTTPURLRQ' (https://github.com/PromiseKit/OMGHTTPURLRQ) registered for path 'Extensions/OMGHTTPURLRQ'
Submodule 'Extensions/Photos' (https://github.com/PromiseKit/Photos.git) registered for path 'Extensions/Photos'
Submodule 'Extensions/QuartzCore' (https://github.com/PromiseKit/QuartzCore.git) registered for path 'Extensions/QuartzCore'
Submodule 'Extensions/Social' (https://github.com/PromiseKit/Social.git) registered for path 'Extensions/Social'
Submodule 'Extensions/StoreKit' (https://github.com/PromiseKit/StoreKit.git) registered for path 'Extensions/StoreKit'
Submodule 'Extensions/SystemConfiguration' (https://github.com/PromiseKit/SystemConfiguration) registered for path 'Extensions/SystemConfiguration'
Submodule 'Extensions/UIKit' (https://github.com/PromiseKit/UIKit.git) registered for path 'Extensions/UIKit'
Submodule 'Extensions/WatchConnectivity' (https://github.com/PromiseKit/WatchConnectivity.git) registered for path 'Extensions/WatchConnectivity'
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/AVFoundation'...
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/Accounts'...
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/AddressBook'...
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/Alamofire'...
fatal: unable to access 'https://github.com/PromiseKit/Alamofire/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
fatal: clone of 'https://github.com/PromiseKit/Alamofire' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/Alamofire' failed
Failed to clone 'Extensions/Alamofire'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/AssetsLibrary'...
fatal: unable to access 'https://github.com/PromiseKit/AssetsLibrary.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
fatal: clone of 'https://github.com/PromiseKit/AssetsLibrary.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/AssetsLibrary' failed
Failed to clone 'Extensions/AssetsLibrary'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/Bolts'...
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/CloudKit'...
fatal: unable to access 'https://github.com/PromiseKit/CloudKit.git/': Failed to connect to github.com port 443: Operation timed out
fatal: clone of 'https://github.com/PromiseKit/CloudKit.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/CloudKit' failed
Failed to clone 'Extensions/CloudKit'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/CoreBluetooth'...
fatal: unable to access 'https://github.com/PromiseKit/CoreBluetooth.git/': Failed to connect to github.com port 443: Operation timed out
fatal: clone of 'https://github.com/PromiseKit/CoreBluetooth.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/CoreBluetooth' failed
Failed to clone 'Extensions/CoreBluetooth'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/CoreLocation'...
fatal: unable to access 'https://github.com/PromiseKit/CoreLocation.git/': Failed to connect to github.com port 443: Operation timed out
fatal: clone of 'https://github.com/PromiseKit/CoreLocation.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/CoreLocation' failed
Failed to clone 'Extensions/CoreLocation'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/EventKit'...
fatal: unable to access 'https://github.com/PromiseKit/EventKit.git/': Failed to connect to github.com port 443: Operation timed out
fatal: clone of 'https://github.com/PromiseKit/EventKit.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/EventKit' failed
Failed to clone 'Extensions/EventKit'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/Foundation'...
fatal: unable to access 'https://github.com/PromiseKit/Foundation.git/': Failed to connect to github.com port 443: Operation timed out
fatal: clone of 'https://github.com/PromiseKit/Foundation.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/Foundation' failed
Failed to clone 'Extensions/Foundation'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/HealthKit'...
fatal: unable to access 'https://github.com/PromiseKit/PMKHealthKit/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
fatal: clone of 'https://github.com/PromiseKit/PMKHealthKit' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/HealthKit' failed
Failed to clone 'Extensions/HealthKit'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/HomeKit'...
fatal: unable to access 'https://github.com/PromiseKit/HomeKit.git/': Failed to connect to github.com port 443: Operation timed out
fatal: clone of 'https://github.com/PromiseKit/HomeKit.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/HomeKit' failed
Failed to clone 'Extensions/HomeKit'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/MapKit'...
fatal: unable to access 'https://github.com/PromiseKit/MapKit.git/': Failed to connect to github.com port 443: Operation timed out
fatal: clone of 'https://github.com/PromiseKit/MapKit.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/MapKit' failed
Failed to clone 'Extensions/MapKit'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/MessagesUI'...
fatal: unable to access 'https://github.com/PromiseKit/MessagesUI.git/': Failed to connect to github.com port 443: Operation timed out
fatal: clone of 'https://github.com/PromiseKit/MessagesUI.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/MessagesUI' failed
Failed to clone 'Extensions/MessagesUI'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/OMGHTTPURLRQ'...
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/Photos'...
fatal: unable to access 'https://github.com/PromiseKit/Photos.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
fatal: clone of 'https://github.com/PromiseKit/Photos.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/Photos' failed
Failed to clone 'Extensions/Photos'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/QuartzCore'...
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/Social'...
fatal: unable to access 'https://github.com/PromiseKit/Social.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
fatal: clone of 'https://github.com/PromiseKit/Social.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/Social' failed
Failed to clone 'Extensions/Social'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/StoreKit'...
fatal: unable to access 'https://github.com/PromiseKit/StoreKit.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
fatal: clone of 'https://github.com/PromiseKit/StoreKit.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/StoreKit' failed
Failed to clone 'Extensions/StoreKit'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/SystemConfiguration'...
fatal: unable to access 'https://github.com/PromiseKit/SystemConfiguration/': Failed to connect to github.com port 443: Operation timed out
fatal: clone of 'https://github.com/PromiseKit/SystemConfiguration' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/SystemConfiguration' failed
Failed to clone 'Extensions/SystemConfiguration'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/UIKit'...
fatal: unable to access 'https://github.com/PromiseKit/UIKit.git/': Failed to connect to github.com port 443: Operation timed out
fatal: clone of 'https://github.com/PromiseKit/UIKit.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/UIKit' failed
Failed to clone 'Extensions/UIKit'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/WatchConnectivity'...
fatal: unable to access 'https://github.com/PromiseKit/WatchConnectivity.git/': Failed to connect to github.com port 443: Operation timed out
fatal: clone of 'https://github.com/PromiseKit/WatchConnectivity.git' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/WatchConnectivity' failed
Failed to clone 'Extensions/WatchConnectivity'. Retry scheduled
Cloning into '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/Alamofire'...
fatal: unable to access 'https://github.com/PromiseKit/Alamofire/': Failed to connect to github.com port 443: Operation timed out
fatal: clone of 'https://github.com/PromiseKit/Alamofire' into submodule path '/private/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-14928-1aspre6/Extensions/Alamofire' failed
Failed to clone 'Extensions/Alamofire' a second time, aborting

一大堆错误,大概看了一下,也不清楚是哪里问题。先更换了ruby的源,之后开了Shadowsocks,手动设置了http代理,再次install就没问题了。

1. 更换ruby的源

➜  gem source -l
*** CURRENT SOURCES ***

https://rubygems.org/
➜  gem sources --remove https://rubygems.org/

https://rubygems.org/ removed from sources
➜  gem sources -a http://gems.ruby-china.com/

http://gems.ruby-china.com/ added to sources
➜  gem sources -l

*** CURRENT SOURCES ***

http://gems.ruby-china.com/

更换ruby的源之后我再尝试pod install,报错没这么多了,又报错下面的错:

[!] Error installing PromiseKit
[!] /usr/bin/git clone https://github.com/mxcl/PromiseKit.git /var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-15359-1ly3k7y --template= --single-branch --depth 1 --branch 6.13.1

Cloning into '/var/folders/k1/96lj0hk91js5fh5lhxnl7s740000gn/T/d20210812-15359-1ly3k7y'...
fatal: unable to access 'https://github.com/mxcl/PromiseKit.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 

LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 这个错误就不叫常见了

2. 配置git的代理

➜  cd ~~ ls -la

➜  ~ git config --global -l

➜  ~ env|grep -i proxy
rvm_proxy=~ git config --global http.proxy http://127.0.0.1:1087
git config --global https.proxy http://127.0.0.1:1087~ open .gitconfig                                     

之后再pod install,一会就好了。

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Morris_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值