出现以下问题 更换镜像试一下
参考
https://juejin.im/post/5dce6dc4e51d453d63662718
https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git
http://www.jeepxie.net/article/729025.html
$ cd ~/.cocoapods/repos
$ pod repo remove master
$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
unable to access 'https://github.com/CocoaPods/Specs.git/': LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
[!] CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/6/1/0/TXIMSDK_iOS/4.6.17/TXIMSDK_iOS.podspec.json Response: Timeout was reached
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `cocoapods`.
(/usr/bin/git clone https://github.com/CocoaPods/Specs.git -- cocoapods
Cloning into 'cocoapods'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
)
You can try adding it manually in `/Users/zwq/.cocoapods/repos` or via `pod repo add`.
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git -- master
Cloning into 'master'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
[!] Unable to find a pod with name, author, summary, or description matching `UMCPush`
删除~/Library/Caches/CocoaPods目录下的search_index.json文件
pod setup成功后
再执行pod search UMCPush