更新三方庫執(zhí)行pod update時報錯[!] CocoaPods was not able to update the cocoapods
repo. If this is an unexpected issue and persists you can inspect it running pod repo update --verbose
因?yàn)樵诰W(wǎng)上沒有搜到報這個錯的解決方案排嫌,自己解決了就打算發(fā)出來權(quán)當(dāng)記錄了店量。
解決辦法:
執(zhí)行:pod repo list
看到有兩個repo
cocoapods
- Type: git (unknown)
- URL: https://github.com/CocoaPods/Specs.git
- Path: /Users/amarantine/.cocoapods/repos/cocoapods
master
- Type: git (master)
- URL: https://github.com/CocoaPods/Specs.git
- Path: /Users/amarantine/.cocoapods/repos/master
執(zhí)行:pod repo remove cocoapods 把不用的repo刪除
刪除成功后在執(zhí)行:pod update 就好了