From 04aaa6ae3472916213719031ca82d07e038992ee Mon Sep 17 00:00:00 2001 From: XXXXRT666 <157766680+XXXXRT666@users.noreply.github.com> Date: Sun, 4 May 2025 12:12:17 +0100 Subject: [PATCH] Add Xcode-Commandline-Tool Installation --- install.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/install.sh b/install.sh index d5512103..b03b8bfe 100644 --- a/install.sh +++ b/install.sh @@ -131,6 +131,22 @@ if [ "$(uname)" != "Darwin" ]; then echo "Installing G++..." conda install -c conda-forge gxx -q -y +else + if ! xcode-select -p &>/dev/null; then + echo "Installing Xcode Command Line Tools..." + xcode-select --install + fi + echo "Waiting For Xcode Command Line Tools Installation Complete..." + while true; do + sleep 20 + + if xcode-select -p &>/dev/null; then + echo "Xcode Command Line Tools Installed" + break + else + echo "Installing,Please Wait..." + fi + done fi echo "Installing ffmpeg and cmake..."