gpt4 book ai didi

xcode - Cocoapods - 'pod --version' 更新到 0.32.1 后给我 0.31.1

转载 作者:行者123 更新时间:2023-12-04 02:31:22 25 4
gpt4 key购买 nike

我和这篇文章有基本相同的问题:when running pod install I get The `master` repo requires CocoaPods 0.32.1, try updating but still in 0.31但答案对我没有帮助(我还不能评论事情哈哈!)

我尝试运行“pod install”或“pod setup”,但收到一条错误消息:

[!] The `master` repo requires CocoaPods 0.32.1 - 
Update CocoaPods, or checkout the appropriate tag in the repo.
/Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:281:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:274:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.31.1/lib/cocoapods/command.rb:51:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.31.1/bin/pod:33:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'

然后我运行'sudo gem install cocoapods',我得到:

CHANGELOG:

## 0.32.1

##### Bug Fixes

* Fixed the Podfile `default_subspec` attribute in nested subspecs.
[Fabio Pelosin][irrationalfab]
[#2050](https://github.com/CocoaPods/CocoaPods/issues/2050)


Successfully installed cocoapods-0.32.1
Parsing documentation for cocoapods-0.32.1
Done installing documentation for cocoapods after 1 seconds
1 gem installed

即使在此之后,我运行 'pod --version' 仍然得到 0.31.1。我是否还需要采取其他步骤才能成功更新到 0.32.1?

最佳答案

更新:必须在 sudo gem uninstall cocoapods 之后重新启动终端

然后sudo gem install cocoapods成功更新到最新版本。

关于xcode - Cocoapods - 'pod --version' 更新到 0.32.1 后给我 0.31.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23177155/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com