From ee4333a42abe9d9ce4d20909b517954a8e1d99de Mon Sep 17 00:00:00 2001 From: Erik Gomez Date: Mon, 9 Jan 2023 17:09:32 -0600 Subject: [PATCH] set xcode path --- build_python_framework_pkgs.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build_python_framework_pkgs.zsh b/build_python_framework_pkgs.zsh index 3ce4575..5048db9 100755 --- a/build_python_framework_pkgs.zsh +++ b/build_python_framework_pkgs.zsh @@ -92,6 +92,17 @@ fi # kill homebrew packages /usr/local/bin/brew remove --force $(/usr/local/bin/brew list) +# Ensure Xcode is set to run-time +sudo xcode-select -s "$XCODE_PATH" + +if [ -e $XCODE_BUILD_PATH ]; then + XCODE_BUILD="$XCODE_BUILD_PATH" +else + ls -la /Applications + echo "Could not find required Xcode build. Exiting..." + exit 1 +fi + # Download specific version of relocatable-python echo "Downloading relocatable-python tool from github..." if [ -f "${RP_ZIP}" ]; then