解决 pod setup 错误、失败的问题

方法一https://cloud.tencent.com/info/3b16aed848ae71b0c7f89fb76afdc661.html

方法二

https://blog.csdn.net/smxalong/article/details/84402789

2018年11月23日 20:29:19 夏日蝉鸣心 阅读数 856更多

分类专栏: ios开发 

1、首先去github上下载.zip文件:https://github.com/CocoaPods/Specs

2、将下载的 master.zip 解压出来,解压后的文件目录:

3、将解压出来的文件目录复制到 /.cocoapods/repos/master 目录:

4、 然后cd到master目录:

cd ~/.cocoapods/repos/master

5、初始化git:

git init

6、关联仓库:

git remote add origin https://github.com/CocoaPods/Specs

7、查看我们的repo是否正常,终端输入:

pod repo

结果如图:

8、 最后测试下 pod search 和 pod install,都可以正常使用了。

发布了15 篇原创文章 · 获赞 3 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/sundaysme/article/details/100559921
今日推荐