QQ20180626-0.jpg
試了好多方法 最后這個用這個成功了
1、進入/users/用戶名/.cocoapods/repos添寺,刪除master文件夾
2、重新下載CocoaPods倉庫git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
備注:如果你電腦里面有多個Xcode不妨先這樣再進行上面的1仙蚜、2步
1 首先要讓系統(tǒng)指定一個Xcode xcode-select -p 輸出:/Applications/Xcode.app/Contents/Developer
2 sudo xcode-select -switch /Applications/Xcode.app/