gpt4 book ai didi

重新安装后 Cocoapods 错误读取 ~/.cocoapods/repos/master/CocoaPods-version.yml

转载 作者:行者123 更新时间:2023-12-02 11:26:43 26 4
gpt4 key购买 nike

我执行了我的正常 pod update并收到以下消息:

[!] There was an error reading '~/.cocoapods/repos/master/CocoaPods-version.yml'.
Please consult http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/ for more information.

所以我按照 http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/ 中的说明进行操作
$ sudo rm -fr ~/.cocoapods/repos/master
$ pod setup
Setting up CocoaPods master repo
[!] There was an error reading '~/.cocoapods/repos/master/CocoaPods-version.yml'.
Please consult http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/ for more information.

同样的错误。所以我删除了 cocoapods,升级了 ruby​​ 和 gems,安装了 cocoapods:
$ sudo rm -fr ~/.cocoapods

$ sudo gem uninstall cocoapods
Remove executables:
pod, sandbox-pod

in addition to the gem? [Yn] y
Removing pod
Removing sandbox-pod
Successfully uninstalled cocoapods-0.35.0

$ sudo gem update --system
Latest version currently installed. Aborting.

$ sudo gem update
Updating installed gems
Updating activesupport
Fetching: i18n-0.7.0.gem (100%)
.
.
.

$ sudo gem install cocoapods
Fetching: cocoapods-0.35.0.gem (100%)
Successfully installed cocoapods-0.35.0
Parsing documentation for cocoapods-0.35.0
Installing ri documentation for cocoapods-0.35.0
Done installing documentation for cocoapods after 4 seconds
1 gem installed

$ pod setup
Setting up CocoaPods master repo
[!] There was an error reading '~/.cocoapods/repos/master/CocoaPods-version.yml'.
Please consult http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/ for more information.

只是为了好玩,我也跑了 pod install .

同样的错误。还有其他人遇到这个问题吗?解决这个问题?或者看看我做错了什么?这个 iOs 应用程序使用 pods 已经有一段时间了。我刚刚添加了 pod 'ZSSRichTextEditor', '~> 0.5'到 Podfile 作为我最近的更改。

更新:

这是 CocoaPods-version.yml 文件:
---
min: 0.32.1
last: 0.35.0

最佳答案

好的,在 github 上发现了相同的问题线程.回答者 csknns .

这是我的情况,重新安装 psych:

$ sudo gem uninstall psych
Password:

Select gem to uninstall:
1. psych-2.0.5
2. psych-2.0.6
3. psych-2.0.8
4. All versions
> 4
Successfully uninstalled psych-2.0.5
Successfully uninstalled psych-2.0.6
Successfully uninstalled psych-2.0.8

$ sudo gem install psych -v 2.0.0
Fetching: psych-2.0.0.gem (100%)
Building native extensions. This could take a while...
Successfully installed psych-2.0.0
Parsing documentation for psych-2.0.0
Installing ri documentation for psych-2.0.0
Done installing documentation for psych after 2 seconds
1 gem installed

$ pod setup
Setting up CocoaPods master repo
Already up-to-date.
Setup completed

希望这可以帮助那里的人!

关于重新安装后 Cocoapods 错误读取 ~/.cocoapods/repos/master/CocoaPods-version.yml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27583949/

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