BaiduLBS / BaiduMapKit

百度地图 iOS SDK(官方)
MIT License
115 stars 51 forks source link

Installing BaiduMapKit #41

Open agan23 opened 5 years ago

agan23 commented 5 years ago

每次都会卡在这里,然后出现错误 [!] Error installing BaiduMapKit [!] /usr/local/bin/git clone https://github.com/BaiduLBS/BaiduMapKit.git /var/folders/r4/nccygkp96d92lpzk8nbvr5sr0000gn/T/d20190624-31184-wo1pr3 --template= --single-branch --depth 1 --branch 4.4.0

Cloning into '/var/folders/r4/nccygkp96d92lpzk8nbvr5sr0000gn/T/d20190624-31184-wo1pr3'... 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

bolee commented 5 years ago

缺梯子?

SZLCode commented 5 years ago

请问解决了吗,一样卡在了这里,网上的方法不行呀,

shuhuaxie commented 4 years ago

卡半天出现提示 error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60 有人能下载下来吗?

BJBJBJ commented 4 years ago

卡半天出现提示 error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60 有人能下载下来吗? 尝试更换以下镜像站试试 https://mirror.tuna.tsinghua.edu.cn/help/CocoaPods/

BJBJBJ commented 4 years ago

每次都会卡在这里,然后出现错误 [!] Error installing BaiduMapKit [!] /usr/local/bin/git clone https://github.com/BaiduLBS/BaiduMapKit.git /var/folders/r4/nccygkp96d92lpzk8nbvr5sr0000gn/T/d20190624-31184-wo1pr3 --template= --single-branch --depth 1 --branch 4.4.0

Cloning into '/var/folders/r4/nccygkp96d92lpzk8nbvr5sr0000gn/T/d20190624-31184-wo1pr3'... 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

参考:https://yq.aliyun.com/articles/634483

BJBJBJ commented 4 years ago

请问解决了吗,一样卡在了这里,网上的方法不行呀,

pod 'BaiduMapKit', :git => 'https://github.com/BaiduLBS/BaiduMapKit.git'

BaiduLBS commented 4 years ago

方法一:建议尝试git config --global http.postBuffer 1048576000

方法二:建议新版cocoapods 使用trunk 相关配置 :sudo vim /private/etc/hosts 添加 199.232.68.133 raw.githubusercontent.com

BaiduLBS commented 4 years ago

trunk第一次会有点慢 耐心等待 可通过MAC 活动监视器 查看进程 git-remote-https 的网络状态

BaiduLBS commented 4 years ago

有更好的办法请留言交流分享

DevForrestWang commented 4 years ago

上面步骤操作都执行了,可以下载下来了了;环境信息:mac 10.15.4,pod 1.9.1;操作步骤如下: 1、将pod升级为1.8版本以上,pod的版本使用1.8.0以上 2、Podfile更换数据源:

3、删除其他数据源如:master、aliyun等,保留cdn地址 pod repo list pod repo remove master pod repo remove aliyun

4、更新Gem镜像 gem sources -l gem sources --remove https://rubygems.org/ gem sources --add https://gems.ruby-china.com/

5、建议尝试 git config --global http.postBuffer 1048576000

6、建议新版cocoapods 1.8以后版本,使用trunk 查看trunk命令: pod repo list

添加本机路由: sudo vim /private/etc/hosts 199.232.68.133 raw.githubusercontent.com 7、通过活动检视器中的网络,查看:git-remote-https 接收包,查看下载进度;失败多执行几次

agan23 commented 4 years ago

更多的我认为是网速问题,真的~

yanbin.li

liyanbin0938@163.com | 签名由网易邮箱大师定制

On 06/20/2020 17:35,Forrest Wangnotifications@github.com wrote:

上面步骤操作都执行了,可以下载下来了了;环境信息:mac 10.15.4,pod 1.9.1;操作步骤如下: 1、将pod升级为1.8版本以上,pod的版本使用1.8.0以上 2、Podfile更换数据源:

source 'https://github.com/CocoaPods/Specs.git' source 'https://cdn.cocoapods.org/'

3、删除其他数据源如:master、aliyun等,保留cdn地址 pod repo list pod repo remove master pod repo remove aliyun

4、更新Gem镜像 gem sources -l gem sources --remove https://rubygems.org/ gem sources --add https://gems.ruby-china.com/

5、建议尝试 git config --global http.postBuffer 1048576000

6、建议新版cocoapods 1.8以后版本,使用trunk 查看trunk命令: pod repo list

添加本机路由: sudo vim /private/etc/hosts 199.232.68.133 raw.githubusercontent.com 7、通过活动检视器中的网络,查看:git-remote-https 接收包,查看下载进度;失败多执行几次

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.