macOS 10.15 Catalina 上的 Carthage

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.

我知道可能会有一些问题,因为我正在使用这些beta版软件在我的次级MacBook Pro上,所以不用担心。但是我无法安装它,如果有任何提示,将非常感激。


Mihai,请提供您在“Error: You are using macOS 10.15”之前看到的终端输出。 - vladZams
3个回答

2
问题预期出现在“Catalina 10.15下Homebrew安装失败#2807”。 发布时间为2019年6月10日08:32:38 IDT。 https://github.com/Carthage/Carthage/issues/2807 建议的解决方案是从主分支中构建carthage源代码(对我有效的提交:e41076782bed7b3609a53f4662480058a65e9a4e)进行安装。
按照https://github.com/Carthage/Carthage#installing-carthage中的说明从主分支构建,需要运行以下命令:
git clone --depth=1 "https://github.com/Carthage/Carthage.git" &&\
cd Carthage &&\ 
make install

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

1
谢谢,完美地为我工作!macOS 10.15 Catalina。 - M Murteza

1
所以问题似乎是由Homebrew引起的。
我找到的解决方案是使用发布页面上的GUI安装程序。在构建任何框架之前,请确保切换到您当前使用的Xcode。
如果您正在使用Xcode 11(测试版),请在终端中运行以下命令:
sudo xcode-select --switch /Applications/Xcode-beta.app

并且适用于Xcode 10(当前版本)*

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

希望这可以帮到你!

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接