您的位置:首页 > 理论基础 > 计算机网络

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

2016-09-30 00:00 916 查看
终端中: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路径

pod update --no-repo-update

pod install --verbose --no-repo-update

即可成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: