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

終端中:pod install 後出現:git

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

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

按照提示:pod repo add master https://github.com/CocoaPods/Specs.giturl

仍然不行,是由於安裝多個xcode致使路徑改變spa

解決: sudo xcode-select -switch 後面當前xcode路徑code

pod update --no-repo-update

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

便可成功。it

相關文章
相關標籤/搜索