cocoapods问题Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`

pod install报错:

# [cocoapods问题Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`](https://my.oschina.net/u/2532095/blog/753609)

终端中: pod install后出现:

Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`.

You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.

按照提示:

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

仍然不行,是因为安装多个xcode导致路径改变

解决: sudo xcode-select -switch 后面当前xcode路径

确保~/.cocoapods/repos下面已经有了你的repo,绕过检查:
pod update --no-repo-update
pod install --verbose --no-repo-update
即可成功。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容