Error installing cocoapods “sudo gem install cocoapods” MacOs Catalina

自闭症网瘾萝莉.ら 提交于 2020-04-13 06:27:49

问题


I am trying to install cocoapods in my mac system but Unfortunately not able to install due to below error.

I have already used below commands.

  • sudo gem install -n /usr/local/bin cocoapods --pre

  • export GEM_HOME=~/.gems export PATH=$GEM_HOME/bin:$PATH gem install cocoapods


回答1:


Seems like you don't have access to usr/bin directory. i have been there!!

please try below command.

sudo gem install -n /usr/local/bin cocoapods

this should work. Thanks!!

Please refer this post more information about access rights.




回答2:


I think you don't have the commande lines tool on Xcode...

sudo xcode-select --reset
xcode-select --install

Keep us posted...



来源:https://stackoverflow.com/questions/61008634/error-installing-cocoapods-sudo-gem-install-cocoapods-macos-catalina

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!