CocoaPods Installation Failure (Unable to resolve dependencies)

て烟熏妆下的殇ゞ 提交于 2019-12-22 08:23:07

问题


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)

回答1:


Try installing the pre-release version:

 sudo gem install cocoapods --pre 



回答2:


My solution is: do

sudo gem install XXX

to each of the dependencies that unable to resolve, one by one.

Then sudo gem install cocoapods



来源:https://stackoverflow.com/questions/32265784/cocoapods-installation-failure-unable-to-resolve-dependencies

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