簡體   English   中英

macOS 10.15 Catalina 上的 Carthage

[英]Carthage on macOS 10.15 Catalina

有沒有人設法在 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 上使用這些測試版軟件,所以不用擔心,但我無法安裝它,任何提示將不勝感激。

我在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

預計該問題“在 Catalina 10.15 #2807 下安裝 Homebrew 失敗”
2019 年 6 月 10 日星期一 08:32:38 IDT
https://github.com/Carthage/Carthage/issues/2807

建議的解決方案
從 master 中的源安裝 build carthage(對我有用的提交: e41076782bed7b3609a53f4662480058a65e9a4e

按照https://github.com/Carthage/Carthage#installing-carthage 中的說明從 master 構建你需要運行這個:

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

因此,出於某種原因,問題似乎是 Homebrew。

我找到的解決方案是使用發布頁面中的 GUI 安裝程序。 在構建任何框架之前,請確保切換到您當前使用的 Xcode。

如果您使用的是 Xcode 11 (beta) ,請在終端中運行:

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

和 Xcode 10(當前)*

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

希望這可以幫助!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM