gpt4 book ai didi

ios - 无论我做什么,pod update 都不会更新到最新版本的 pod

转载 作者:行者123 更新时间:2023-12-01 21:47:29 26 4
gpt4 key购买 nike

我查看了相关的 Stack Overflow 问题,并尝试了那里的建议以及 cocoapods 的 github 问题都无济于事。

我管理 TensorIOTensorFlow pod,最近发布了该 pod 的两个更新,1.15 和 1.15.1。两个版本都在 GitHub 上标记,并在使用 pod trunk push TensorIOTensorFlow.podspec linting 后推送到主干。从项目的根目录。

https://github.com/doc-ai/tensorio-tensorflow-ios

现在距离我发布 1.15.1 更新已经十二个多小时了,无论我做什么都无法获得 pod update将本地项目从 1.15 版本更新到 1.15.1 版本或 pod install安装 1.15 版本以外的任何东西。

我尝试清除 cocoapods 缓存:

$ rm -rf "${HOME}/Library/Caches/CocoaPods"
$ rm -rf ~/.cocoapods/repos
$ pod cache clean --all

我尝试更新我的本地规范仓库:
$ pod install --repo-update
$ pod update --repo-update
$ pod repo update

我都试过了 pod updatepod install删除项目的 Pods 目录和 Podfile.lock 后。我已经在现有项目和新项目以及第一次安装 cocoapods 的单独机器上尝试了这两种方法。

我曾尝试专门针对 pod 文件中的版本:
pod 'TensorIOTensorFlow', '1.15.1'

只得到以下错误:
[!] CocoaPods could not find compatible versions for pod "TensorIOTensorFlow":
In Podfile:
TensorIOTensorFlow (= 1.15.1)

None of your spec sources contain a spec satisfying the dependency: `TensorIOTensorFlow (= 1.15.1)`.

You have either:
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.

尽管有这个错误,特别令人沮丧,trunk 似乎知道 1.15.1 版本:
$ pod trunk info TensorIOTensorFlow

TensorIOTensorFlow
- Versions:
- 0.1.0 (2019-04-09 19:29:30 UTC)
- 0.1.1 (2019-05-09 17:43:06 UTC)
- 0.3.0 (2019-12-18 18:44:18 UTC)
- 0.3.1 (2020-01-23 23:36:35 UTC)
- 1.13.4 (2020-05-01 21:16:32 UTC)
- 1.13.5 (2020-05-08 21:13:09 UTC)
- 1.13.6 (2020-05-26 20:05:09 UTC)
- 1.15 (2020-05-27 17:06:58 UTC)
- 1.15.1 (2020-05-27 23:44:11 UTC)

但是 pod search 没有看到:
$ pod search TensorIOTensorFlow

-> TensorIOTensorFlow (1.15)
The TensorFlow (unofficial) build used by TensorIO for iOS.
pod 'TensorIOTensorFlow', '~> 1.15'
- Homepage: https://github.com/doc-ai/tensorio-tensorflow-ios
- Source: https://storage.googleapis.com/tensorio-build/r1.15/TensorIO-TensorFlow-1.15_0.tar.gz
- Versions: 1.15, 1.13.6, 1.13.5, 1.13.4, 0.3.1, 0.3.0, 0.1.1, 0.1.0 [trunk repo]

可以肯定的是,这是在我用 pod delete 删除 1.15 和 1.15.1 版本之后并尝试再次将它们推到后备箱。在此之前, pod search 做了 显示 1.15.1 版本,但我仍然无法获得升级到它的项目。

最后,我尝试卸载并重新安装cocoapods,正如我所提到的,我也在新机器上尝试了所有这些,第一次安装了最新版本的cocoapods,但仍然无法获得1.15.1版本 pod 的。

最佳答案

更新 CDN 可能会滞后。要解决方法并直接从 GitHub 存储库加载,请添加 source 'https://github.com/CocoaPods/Specs.git'到 Podfile。

请注意,它会慢得多。

更新:根本原因现在看起来已修复。见 https://github.com/CocoaPods/CocoaPods/issues/9826

关于ios - 无论我做什么,pod update 都不会更新到最新版本的 pod,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62071323/

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