objective-c - 无法安装cocoapods 0.29

标签 objective-c jenkins cocoapods

我成功安装了 cocoapods 0.29,在尝试运行 pod setup 后,它声称我必须安装 0.29。

有人可以向我解释一下吗?

Successfully installed cocoapods-0.29.0
Parsing documentation for cocoapods-0.29.0
1 gem installed
bash-3.2$ pod setup
Setting up CocoaPods master repo
Already up-to-date.
[!] The `master` repo requires CocoaPods 0.29.0 - 
Update CocoaPods, or checkout the appropriate tag in the repo.

更新:

更新 cocoapods 后,我可以运行 pod setup,但是仍然收到一些关于未安装 0.29 的错误:(而且,当运行 pod --version 时,它说我使用的是 0.22.3???)

bash-3.2$ sudo gem update cocoapods
Updating installed gems
Nothing to update
bash-3.2$ sudo pod setup
Setting up CocoaPods master repo
Already up-to-date.
Setup completed (read-only access)
bash-3.2$ pod install
Setting up CocoaPods master repo
Already up-to-date.
[!] The `master` repo requires CocoaPods 0.29.0 - 
Update CocoaPods, or checkout the appropriate tag in the repo.
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/claide-0.3.2/lib/claide/command.rb:210:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
bash-3.2$ pod --version
0.22.3

最佳答案

浏览此文件并将其删除

/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/claide-0.3.2/lib/claide

然后打开你的终端添加这个

sudo gem 更新

它 100% 对我有用

关于objective-c - 无法安装cocoapods 0.29,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22219784/

相关文章:

ios - 我的导航栏有什么问题?

git - 如何让 Jenkins 将 Git merge 提交视为更改?

java - Jenkins 蓝海 : Maven doesn't see Java

ios - 我在 xcworkspace 中收到大量关于丢失文件的警告

ios - Flutter 调试 : Warning: CocoaPods not installed. 跳过 pod 安装

ios - CLLocationManager 不在 viewDidLoad 上初始化

objective-c - Cocoa Core Data 计算实体的有效方法

ios - 模态翻转动画后 UINavigationBar 的高度发生变化

jenkins - 每次在 CLI - SOAPUI 中运行测试运行程序脚本时,如何将报告保存到新位置

ios - cocoapod 中缺少文件