按照往常的方法一樣安裝Cocoapods哮针,在安裝的過程中遇到了一切問題,按照傳統(tǒng)的命令sudo gem install cocoapods出現(xiàn)了如下的錯(cuò)誤:
ERROR:Whileexecuting gem ... (Errno::EPERM)? ? Operation not permitted - /usr/bin/pod傻盟。
安裝:
sudo geminstall-n/usr/local/bincocoapods -v1.0.1
卸載
sudo gemuninstall-n/usr/local/bincocoapods -v1.0.1
在終端輸入pod setup,會(huì)出現(xiàn)Setting up CocoaPods master repo馆蠕,等幾分鐘刽锤,會(huì)輸入Setup completed彪蓬,說明pod setup執(zhí)行成功瞻鹏。
終端輸入rm ~/Library/Caches/CocoaPods/search_index.json
執(zhí)行pod search