Flutter

pod setup 速度慢 终极解决办法

2018-08-08  本文已影响25人  Lee馍馍

1、到https://github.com/CocoaPods/Specs.git网址 把文件clone下来,默认文件夹名字为Specs-master

2、前往文件夹 ~/.cocoapods/repos

3、终端cd到你的工程目录中执行 pod setup,等待一会,等到开始下载的时候,会发现在~/.cocoapods/repos 下面多一个master文件,这时,需要复制master下面的.git 文件夹到Specs-master下面,同时停止pod setup

4、Specs-master文件夹名字修改为master,并替换~/.cocoapods/repos 下的master文件夹

5、直接可以正常执行pod install 等命令

--------------------工程中用到的第三方库找不到-------------------

[!] Unable to find a pod with name, author, summary, or descriptionmatching

终端命令:

rm ~/Library/Caches/CocoaPods/search_index.json

pod search AFNetworking

上一篇下一篇

猜你喜欢

热点阅读