自从CocoaPods升级到1.8后,就把CDN切换为默认的spec repo源,导致最近使用pod update会出现以下情况
但cdn因为q的原因,导致一直连不上
解决方案
podfile文件在项目reactNative 根目录下的ios文件夹里
vim /ios/Podfile
- podfile文件中指定source源:
source 'https://github.com/CocoaPods/Specs.git'
- 或者指定为国家不错的镜像站【推荐】
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
保存后
pod repo update
删除trunk源
pod repo remove trunk