solution of “Creating shallow clone of spec repo `master`” very slow

“Creating shallow clone of spec repo `master`”非常慢的解决办法

if your pod Build fails with “[!] Unable to find a pod with“, maybe you should update your cocoapods version, i just update my cocoapods to 1.0.0.rc.2, and the error is gone.


Creating shallow clone of spec repo `master` will clone lots of  files and folders ,  so it will take a very long time.

the solution is there

cd ~/.cocoapods/repos/master   // if this folder is not exit, create one
git fetch --unshallow

you will see the progress like this:

1

zip all the files , about 480M , ,and then  download it, and unzip it for you automatically, it is very fast,  have a try ~