Flutter Developers

cocoapods 安装错误

2020-04-30  本文已影响0人  A_si

sudo gem install cocoapods的时候出现 :

While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.

改为 sudo gem install -n /usr/local/bin cocoapods 即可


出现:

ERROR:  Error installing cocoapods:
ERROR: Failed to build gem native extension.

执行open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg


rvm 安装出现:Failed to connect to raw.githubusercontent.com port 443: Connection refused
给终端挂上代理。

【iOS工具】rvm、Ruby环境和CocoaPods安装使用及相关报错问题解决(2019.12.14 更新)

上一篇 下一篇

猜你喜欢

热点阅读