cocoapods换成M芯片后pod install报错

cocoapods换成M芯片后执行pod install

 MacBook-Pro:Demo amove$ pod install

Analyzing dependencies

[!] Couldn't determine repo type for URL: `https://cdn.cocoapods.org/`: SSL_connect SYSCALL returned=5 errno=0 peeraddr=[2606:4700:20::ac43:4aa7]:443 state=error: certificate verify failed (unable to get local issuer certificate)

[!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.

报证书校验错误,试了网上几种方案,升级homebrew  升级ruby 升级cocoapod 都未解决,最后基本摆烂了,试了一下从Rosetta打开终端,问题解决了。


设置从Rosetta打开

在Finder应用程序-->实用工具-->终端 右击,选择使用Rosetta打开。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容