简体   繁体   English

无法在xcode中安装cocoapods

[英]Not able to install cocoapods in xcode

I am currently installing cocoapods in my Project.i am using xcode 6.3.1 and OS is EL Capitan version is 10.11.6 我目前在Project.i中安装cocoapods,使用的是xcode 6.3.1 ,操作系统为EL Capitan,版本为10.11.6

i am following this steps 我正在按照这个步骤

  • sudo gem install cocoapods 须藤宝石安装cocoapods
  • pod setup 吊舱设置
  • open terminal and give path of our project 打开终端并给出我们项目的路径
  • pod init 荚初始化

when i do pod init i am getting error.i have attached screenshot. 当我执行pod init时,我遇到了error.i已附加了屏幕截图。

终端屏幕截图

please go through it and please let me know.thanks in advance 请仔细阅读,并让我知道。谢谢

Try this for CocoaPod issue. 试试这个解决CocoaPod问题。

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

reference here: https://github.com/CocoaPods/CocoaPods/issues/3736 参考在这里: https : //github.com/CocoaPods/CocoaPods/issues/3736

Try 尝试

sudo gem uninstall nanaimo

just delete one of the nanaimo, and keep the latest version. 只需删除其中一个nanaimo,并保留最新版本即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM