pod 'BaiduMapKit' #百度地图SDK
pod install
出现问题:
[!] Error installing BaiduMapKit
[!] /usr/local/bin/git clone https://github.com/BaiduLBS/BaiduMapKit.git /var/folders/66/cn9r2_js64116n5r3rjcv3qm0000gn/T/d20191024-3181-1lhmczd --template= --single-branch --depth 1 --branch 5.0.0
Cloning into '/var/folders/66/cn9r2_js64116n5r3rjcv3qm0000gn/T/d20191024-3181-1lhmczd'...
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
sudo gem install -n /usr/local/bin cocoapods
出现问题:
ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
Unable to download data from https://gems.ruby-china.org/ - bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)
gem sources -l
gem sources --remove https://gems.ruby-china.org/
gem sources --add https://gems.ruby-china.com/
gem update --system
sudo gem install -n /usr/local/bin cocoapods
pod setup
pod install
出现问题:
[!] Couldn't determine repo type for URL: `https://cdn.cocoapods.org/`: execution expired
pod repo remove master
pod install
成功。
end
参与评论
手机查看
返回顶部