pod 更新pod setup报错CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
pod 更新pod setup报错CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
首先执行,这里需要输入电脑密码
$ sudo rm -fr ~/Library/Caches/CocoaPods/
接下来
$ sudo rm -fr ~/.cocoapods/repos/master/
听说新版本 这个方法不可用
$ sudo gem install cocoapods
会报错
Operation not permitted - /usr/bin/xcodeproj
改用下边这个方法即可
$ sudo gem install -n /usr/local/bin cocoapods --pre
最后再setup 就好了
$ pod setup
最后看下版本
$ pod --version
更新慢推荐Mac翻 墙软件 iss https://free.ishadow.host
第一次发见谅