reactNative 运行pod install 报错 trunk Repo update failed

自从CocoaPods升级到1.8后,就把CDN切换为默认的spec repo源,导致最近使用pod update会出现以下情况
在这里插入图片描述
但cdn因为q的原因,导致一直连不上

解决方案
podfile文件在项目reactNative 根目录下的ios文件夹里

vim /ios/Podfile
  1. podfile文件中指定source源:
source 'https://github.com/CocoaPods/Specs.git'
  1. 或者指定为国家不错的镜像站【推荐】
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'

保存后

pod repo update

删除trunk源

pod repo remove trunk
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章