CocoaPods安装失败(无法解决依赖性) [英] CocoaPods Installation Failure (Unable to resolve dependencies)

查看:357
本文介绍了CocoaPods安装失败(无法解决依赖性)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在MacOS X 10.3上安装CocoaPods时遇到问题。第一次尝试失败,出现DependencyError导致午睡。我安装午睡,然后再次尝试以相同的结果。

I have a problem while installing CocoaPods on MacOS X 10.3. The first try fails with a DependencyError for nap. I install nap and try again with the same result. Uninstalling and reinstalling doesn't help.

andreass-mbp:~ AndreasB$ sudo gem uninstall cocoapods
Password:
andreass-mbp:~ AndreasB$ sudo gem uninstall nap
Successfully uninstalled nap-1.0.0
andreass-mbp:~ AndreasB$ sudo gem install nap
Fetching: nap-1.0.0.gem (100%)
Successfully installed nap-1.0.0
Parsing documentation for nap-1.0.0
Installing ri documentation for nap-1.0.0
1 gem installed
andreass-mbp:~ AndreasB$ sudo gem install cocoapods
ERROR:  While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: cocoapods requires nap (~> 0.8); cocoapods-stats requires nap (~> 0.8); cocoapods-core requires nap (~> 0.8.0)


推荐答案

尝试安装预发行版本:

 sudo gem install cocoapods --pre 

这篇关于CocoaPods安装失败(无法解决依赖性)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆