【问题标题】:Carthage on macOS 10.15 CatalinamacOS 10.15 Catalina 上的迦太基
【发布时间】:2019-06-06 10:59:40
【问题描述】:

有人设法在 macOS 10.15 Catalina (Beta) 上安装 Carthage 吗?

我尝试使用 HomeBrew 安装 Carthage:

brew install Carthage

我收到以下错误消息:

Error: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's Github.
Discourse, Twitter or IRC. You are responsible for resolving any issues you experience, as you are running this pre-release version.

现在,我确实知道可能存在一些问题,我在我的辅助 MacBook Pro 上使用这些测试版软件,所以不用担心,但我无法安装它,如果有任何提示,我将不胜感激。

【问题讨论】:

  • 米海,请提供你在之前Error: You are using macOS 10.15看到的终端输出

标签: ios homebrew carthage macos-catalina


【解决方案1】:

我在 ma​​cOS 10.15.4 Catalina 上运行这些命令并为我工作。

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
sudo chown -R $(whoami) /usr/local/*
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install carthage

【讨论】:

  • 谢谢你完美地为我工作。! macOS 10.15 卡特琳娜
【解决方案2】:

这个问题是预料之中的 '在 Catalina 10.15 #2807 下 Homebrew 安装失败'
2019 年 6 月 10 日星期一 08:32:38 IDT
https://github.com/Carthage/Carthage/issues/2807

建议的解决方案
从 master 中的源安装构建 carthage(对我有用的提交:e41076782bed7b3609a53f4662480058a65e9a4e

按照https://github.com/Carthage/Carthage#installing-carthage 中的说明从 master 构建你需要运行这个:

git clone --depth=1 "https://github.com/Carthage/Carthage.git" &&\
cd Carthage &&\ 
make install

【讨论】:

    【解决方案3】:

    所以问题似乎是 Homebrew 出于某种原因。

    我找到的解决方案是使用发布页面中的 GUI 安装程序。在构建任何框架之前,请确保切换到您当前使用的 Xcode。

    如果您使用的是 Xcode 11 (beta),请在终端中运行:

    sudo xcode-select --switch /Applications/Xcode-beta.app
    

    对于 Xcode 10(当前)*

    sudo xcode-select --switch /Applications/Xcode.app
    

    希望这会有所帮助!

    【讨论】:

      猜你喜欢
      • 2020-02-02
      • 1970-01-01
      • 1970-01-01
      • 2019-11-24
      • 2020-02-06
      • 1970-01-01
      • 2020-09-02
      • 2016-01-04
      • 1970-01-01
      相关资源
      最近更新 更多