解決步驟:
- 為了安全起見爪瓜,執(zhí)行命令
sudo gem uninstall cocoapods
,卸載原有的CocoaPod - 執(zhí)行命令
sudo gem install -n /usr/local/bin cocoapods
來重新安裝cocoapod - 如果沒有權(quán)限執(zhí)行pod匙瘪,執(zhí)行命令
sudo chmod +rx /usr/local/bin/
铆铆,賦予/usr/local/bin
給予執(zhí)行與讀取權(quán)限
sudo gem uninstall cocoapods
,卸載原有的CocoaPodsudo gem install -n /usr/local/bin cocoapods
來重新安裝cocoapodsudo chmod +rx /usr/local/bin/
铆铆,賦予/usr/local/bin
給予執(zhí)行與讀取權(quán)限