使用sudo gem install cocoapods
安装cocoapods之后,尝试运行pod setup
会返回以下错误:
Could not find 'cocoapods' (>= 0) among 64 total gem(s) (Gem::LoadError)
sudo gem install cocoapods
的输出:CHANGELOG:
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.28.0...0.29.0)
• [CocoaPods-core](https://github.com/CocoaPods/Core/compare/0.28.0...0.29.0)
• [cocoapods-downloader](https://github.com/CocoaPods/cocoapods-downloader/compare/0.2.0...0.3.0)
[ bug/enhancement notes removed for brevity]
Successfully installed cocoapods-0.29.0
Parsing documentation for cocoapods-0.29.0
1 gem installed
当我列出安装的 gem 时,我没有在本地 gem 中看到cocoapods,但在/usr/local/Cellar/ruby/2.0.0-p0/bin中却看到了“pod”。
系统配置:
Mac OS 10.9 (upgraded from 10.8)
Xcode: 5.0.2 (upgrade from 4.x)
Ruby path: /usr/local/Cellar/ruby/2.0.0-p0
我怎样才能使cocopods为我工作?
最佳答案
从终端上卸载并重新安装CocoaPods对我来说解决了这个问题(有关更多信息,请参见CocoaPods documentation):
gem 卸载cocoapods
gem 安装cocoapods
关于cocoapods - 找不到 pod :在总共64个 gem 中找不到 'cocoapods'(> = 0)(Gem::LoadError),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20819564/