【发布时间】:2021-01-10 09:33:14
【问题描述】:
我正在遵循一些关于 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
【问题讨论】:
-
你能
gem list pod给我们输出吗?另外,你能grep -i pod Gemfile.lock吗? -
将两者都添加到问题中。
-
您可以试试
bundle update cocoapods看看是否有帮助?您的捆绑包具有当前 gemset 的旧版本。