OStack程序员社区-中国程序员成长平台

标题: ios - Xcode 5.1.1 安装 CocoaPods 时出错 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 23:50
标题: ios - Xcode 5.1.1 安装 CocoaPods 时出错

安装 Cocoa Pods 时出现以下错误。

...........

Successfully installed cocoapods-core-0.33.1
 Fetching: cocoapods-0.33.1.gem (100%) 
ERROR: Error installing cocoapods: cocoapods requires cocoapods-try (~> 0.3.0)
------------------------------------------------------------------------



Best Answer-推荐答案


我也遇到了同样的问题,解决方法如下:

sudo gem install cocoapods-try

之后我在尝试安装 cocoapods 时遇到了后续错误:

ERROR:  Error installing cocoapods:
cocoapods requires cocoapods-trunk (~> 0.1.1)

这促使我尝试:

sudo gem install cocoapods-trunk

完成最后一个 sudo:

sudo gem install cocoapods

你应该很高兴!希望它对你有用!

关于ios - Xcode 5.1.1 安装 CocoaPods 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24773216/






欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) Powered by Discuz! X3.4