【问题标题】:Carthage not using latest version installed迦太基没有使用安装的最新版本
【发布时间】:2020-04-26 21:44:21
【问题描述】:

使用Carthage 时出现此错误:

Please update to the latest Carthage version: 0.34.0. You currently are on 0.27.0

但我已经安装了 0.34.0。如果我这样做 brew info carthage 这会打印:

carthage: stable 0.34.0 (bottled), HEAD
Decentralized dependency manager for Cocoa
https://github.com/Carthage/Carthage
/usr/local/Cellar/carthage/0.34.0 (8 files, 5.2MB)
  Poured from bottle on 2020-01-09 at 09:18:31
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/carthage.rb
==> Requirements
Build: xcode ✔
==> Options
--HEAD
    Install HEAD version

如果我尝试升级brew upgrade Carthage:

Warning: Carthage 0.34.0 already installed

知道发生了什么吗?

谢谢

【问题讨论】:

    标签: carthage


    【解决方案1】:

    尝试运行brew uninstall carthage,然后运行brew install carthage,看看会发生什么。对我来说,符号链接有错误,并且有关于如何解决问题的说明。

    【讨论】:

      【解决方案2】:

      我有同样的问题。无论我尝试卸载、安装或升级 Carthage 多少次,我始终拥有 0.34.0!

      我从这个Answer 遵循了一些命令行。我完全怀疑我过去是否安装了该软件包,但在我这样做之后:

      rm -rf /usr/local/bin/carthage
      sudo rm -rf /Library/Frameworks/CarthageKit.framework
      brew install carthage
      

      我收到了这条消息:

      所以我尝试了:

      brew upgrade carthage
      

      还有:

      我可能会也可能不会为你工作,但它对我有用...

      【讨论】:

        猜你喜欢
        • 2018-07-08
        • 2017-03-24
        • 1970-01-01
        • 2014-01-15
        • 2021-10-13
        • 2016-01-04
        • 1970-01-01
        • 2022-01-20
        • 1970-01-01
        相关资源
        最近更新 更多