Cloning spec repo `cocoapods-1` from `https://github.com/CocoaPods/Specs.git`

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '11.0'

use_frameworks! 
inhibit_all_warnings! 

target ‘demo’ do

  pod 'SnapKit'

end

pod install 时一直卡在

Cloning spec repo `cocoapods-1` from `https://github.com/CocoaPods/Specs.git`

解决办法

pod setup
cd ~/.cocoapods/repos
git config --global http.postBuffer 524288000
git clone --depth 1 https://github.com/CocoaPods/Specs.git master

然后是漫长的等待......

你可能感兴趣的:(Cloning spec repo `cocoapods-1` from `https://github.com/CocoaPods/Specs.git`)