4

有没有人设法在 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 上使用这些测试版软件,所以不用担心,但我无法安装它,任何提示将不胜感激。

4

3 回答 3

2

我在macOS 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
于 2020-05-31T10:59:03.043 回答
1

因此,出于某种原因,问题似乎是 Homebrew 。

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

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

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

对于 Xcode 10(当前)*

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

希望这可以帮助!

于 2019-06-06T21:41:08.960 回答
1

预计该问题“Catalina 10.15 #2807 下的 Homebrew 安装失败”
Mon Jun 10 08:32:38 IDT 2019
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
于 2019-06-10T06:58:07.530 回答