m1安装cocoapods

m1安装cocoapods

http://www.taodudu.cc/news/show-5551017.html?action=onClick

 

pod search AFNetworking

[!] Unable to find a pod with name, author, summary, or description matching `AFNetworking`

pod repo 返回也是 0 repo

解决方法 使用国内清华cocoapod源手动下载:

git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git  ~/.cocoapods/repos/trunk

下载完成后 再使用pod repo 就会返回 1 repo

再使用pod search 不会再报错了

 

安装rvm 步凑:

https://www.jianshu.com/p/c073e6fc01f5

posted @ 2024-05-31 12:16  super1250  阅读(126)  评论(0编辑  收藏  举报