环境: macOS Monterey 12.6.2

按照文档,安装cocoapods ,提示 failed to build gem native extension

安装Xcode13.4.1后,重新安装,Success

使用pod时,提示 Couldn't determine repo type for URL: `https://cdn.cocoapods.org/`: execution expired

更换Ruby Gems镜像 https://developer.aliyun.com/mirror/rubygems

查找默认源
gem sources
移除默认源
gem sources --removehttps://rubygems.org/
添加新源
gem sources -a https://mirrors.aliyun.com/rubygems/
之后可正常使用pod
网友评论