如题解决[!] Couldn't determine repo type for URL: `https://cdn.cocoapods.org/`: execution expired
在运行pod install --repo-update时报上面的错误,解决方案参考如下:
1、在终端依次输入以下命令
cd ~/.cocoapods/repos
pod repo remove master
git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
2、上面的命令执行完成后,在Podfile文件中添加一行命令:
source ‘https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master’
3、再执行pod install命令即可解决