cocopods 相关问题

1、当我想导入 IQKeyboardManagerSwift的时候,无语的是总是报错

cmwa-li:cmwa cmwa$ pod install
Analyzing dependencies
Downloading dependencies
Installing IQKeyboardManagerSwift (6.5.5)

[!] Error installing IQKeyboardManagerSwift
[!] /usr/bin/git clone https://github.com/hackiftekhar/IQKeyboardManager.git /var/folders/jw/7rl3k82s525g5v5613yj29c40000gn/T/d20200604-15449-xmrjq0 --template= --single-branch --depth 1 --branch v6.5.5

Cloning into '/var/folders/jw/7rl3k82s525g5v5613yj29c40000gn/T/d20200604-15449-xmrjq0'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

最后解决方法

pod 'IQKeyboardManagerSwift', :git => 'https://github.com/hackiftekhar/IQKeyboardManager.git'

2、Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down

解决方法:

$sudo rm -fr ~/.cocoapods/repos/master
$pod setup
$pod install

你可能感兴趣的:(cocopods 相关问题)