Mac系統(tǒng)升級(jí)到macOS High Sierra 10.13后观游,結(jié)果發(fā)現(xiàn)cocoapods失效了
sudo gem update --system
sudo gem install -n /usr/local/bin cocoapods
執(zhí)行完就可以直接用了湃番。
如果更新cocoapod的時(shí)候出現(xiàn)如下錯(cuò)誤:
Performing a deep fetch of the `master` specs repo to improve future performance
解決辦法是移除master庫,重新創(chuàng)建。解決方法如下:
pod repo upadte --verbose
rm -rf ~/.cocoapods/repos/master
pod setup