加载第三方Cocoapod库时到项目时

Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`. You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.

sudo xcode-select --switch /Applications/Xcode.app  

Xcode安装时所在的路径 

原文地址:https://www.cnblogs.com/fanwenzheIOS/p/5063680.html