gpt4 book ai didi

ruby - bundle exec pod install -> 无法找到 URL 为 "trunk"的已知源

转载 作者:行者123 更新时间:2023-12-05 06:54:01 24 4
gpt4 key购买 nike

我正在按照 Xcode 存储库留下的一些说明进行操作。

$ bundle exec pod install
Analyzing dependencies
[!] The version of CocoaPods used to generate the lockfile (1.9.3) is higher than the version of the \
current executable (1.6.1). Incompatibility issues may arise.

我认为这会导致错误:

 Failed to find known source with the URL "trunk"

当我检查 pods 的版本时,我得到:

$ pod --version
1.10.0

我的假设(但我可能是错的)是我要么需要运行命令以运行更新版本的 pod,要么我需要在不同的地方安装更新版本.

添加信息(根据评论的要求)

$ gem list pod

*** LOCAL GEMS ***

cocoapods (1.10.1, 1.10.0)
cocoapods-core (1.10.1, 1.10.0)
cocoapods-deintegrate (1.0.4)
cocoapods-downloader (1.4.0)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.0)
cocoapods-trunk (1.5.0)
cocoapods-try (1.2.0)


$ grep -i pod Gemfile.lock
cocoapods (1.6.1)
cocoapods-core (= 1.6.1)
cocoapods-deintegrate (>= 1.0.2, < 2.0)
cocoapods-downloader (>= 1.2.2, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.3.1, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
cocoapods-core (1.6.1)
cocoapods-deintegrate (1.0.4)
cocoapods-downloader (1.2.2)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.0)
cocoapods-stats (1.1.0)
cocoapods-trunk (1.3.1)
cocoapods-try (1.1.0)
cocoapods

最佳答案

我已经多次遇到这个问题,但不确定为什么。为了修复,我在项目目录中运行以下终端命令:

sudo gem install cocoapods-deintegrate cocoapods-clean(仅当您没有安装cocoapods-deintegratecocoapods-clean 时)

pod 分解

pod 清理

pod 设置

pod 安装

据我了解,这将完全清除并重新安装 pod 文件。我再次不确定是什么原因导致问题开始,但这对我有用。

关于ruby - bundle exec pod install -> 无法找到 URL 为 "trunk"的已知源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65651813/

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