自從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