pod install安装失败

xxx@xxxdeMacBook-Pro project-xxx % pod install
Analyzing dependencies
Downloading dependencies
Installing SDWebImage (5.3.1)

[!] Error installing SDWebImage
[!] /usr/bin/git clone https://github.com/SDWebImage/SDWebImage.git /var/folders/lp/j14k4s5x63j8fmx0fyfy22rr0000gn/T/d20200401-38323-1xttiw3 --template= --single-branch --depth 1 --branch 5.3.1

Cloning into '/var/folders/lp/j14k4s5x63j8fmx0fyfy22rr0000gn/T/d20200401-38323-1xttiw3'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

尝试方法:
方案一:
终端执行命令,然后pod install

git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
git config http.postBuffer 524288000

但依然不行。
方案二:sudo gem install cocoapods

xxx@xxxdeMacBook-Pro project-x % sudo gem install cocoapods
Password:
Fetching ffi-1.12.2.gem
Fetching ethon-0.12.0.gem
Fetching typhoeus-1.3.1.gem
Fetching cocoapods-core-1.9.1.gem
Fetching xcodeproj-1.15.0.gem
Fetching cocoapods-1.9.1.gem
Building native extensions. This could take a while...
Successfully installed ffi-1.12.2
Successfully installed ethon-0.12.0
Successfully installed typhoeus-1.3.1
Successfully installed cocoapods-core-1.9.1
Successfully installed xcodeproj-1.15.0
Successfully installed cocoapods-1.9.1
Parsing documentation for ffi-1.12.2
Installing ri documentation for ffi-1.12.2
Parsing documentation for ethon-0.12.0
Installing ri documentation for ethon-0.12.0
Parsing documentation for typhoeus-1.3.1
Installing ri documentation for typhoeus-1.3.1
Parsing documentation for cocoapods-core-1.9.1
Installing ri documentation for cocoapods-core-1.9.1
Parsing documentation for xcodeproj-1.15.0
Installing ri documentation for xcodeproj-1.15.0
Parsing documentation for cocoapods-1.9.1
Installing ri documentation for cocoapods-1.9.1
Done installing documentation for ffi, ethon, typhoeus, cocoapods-core, xcodeproj, cocoapods after 43 seconds
6 gems installed

然后pod install,经过漫长等待之后恢复正常。

xxx@xxxdeMacBook-Pro project-x % pod install
Analyzing dependencies
Downloading dependencies
Installing SDWebImage (5.3.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 16 dependencies from the Podfile and 18 total pods installed.
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容