在升級(jí)pod庫(kù)時(shí)遇到下面的情況,在多方查找資料后,最終解決了這個(gè)問(wèn)題
[!] Error installing FLAnimatedImage
[!] /usr/bin/git clone https://github.com/Flipboard/FLAnimatedImage.git /var/folders/58/p9hmlpx93jng564qhwrfqtpw0000gn/T/d20190530-31669-1y1inta --template= --single-branch --depth 1 --branch 1.0.12
Cloning into '/var/folders/58/p9hmlpx93jng564qhwrfqtpw0000gn/T/d20190530-31669-1y1inta'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed
cocoapods 升級(jí)庫(kù)時(shí),遇到這個(gè)問(wèn)題,最終解決辦法如下
$ git clone https://github.com/Flipboard/FLAnimatedImage.git --depth 1
$ cd FLAnimatedImage
$ git fetch --unshallow
$ cd -
$ pod update