最新 macOS 安装CocoaPods及使用详解

2017-10-17  本文已影响6人  nadou23

当使用CocoaPods 时报解决Unable to add a source with url https://github.com/CocoaPods/Specs.git named

解决方案:

pod repo add master https://github.com/CocoaPods/Specs.git

然后如果提示执行’pod setup’,
那就在终端

pod setup

如果出现

[!] The `master` repo is not a git repo.

进入/users/你的用户名/.cocoapods/repos,删除master文件夹
然后执行

pod setup

如果是安装多个Xcdoe,还需要选择Xcode的路径https://blog.csdn.net/u010046748/article/details/52681192

参考技术贴和博客如下:
最新 macOS Sierra 10.12.3 安装CocoaPods及使用详解

CocoaPods的安装以及遇到的坑

MAC上安装cocoapods方法及使用简介

上一篇下一篇

猜你喜欢

热点阅读