当使用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及使用详解
网友评论