Flutter ios项目构建时 SSL_ERROR_SYSCALL

114 阅读1分钟

最近flutter ios项目工程运行时候报错

具体报错内容如下:



**Showing Recent Messages**

The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

这种情况按理来说 在终端中执行pod install

但是执行之后报错SSL_ERROR_SYSCALL in connection to github.com:443

网上查询各种配置https代理 重启电脑的方法都没用

要是有闲心执行多次pod install 也能偶尔成功一次

这个问题是github代理引起的

具体操作方法 见官方详解:# Git - SSL_ERROR_SYSCALL 问题解决

** 还有话要说:执行pod install 之前记得要关闭Xcode,执行完之后记得清理下项目**