From cabcff093d0bb54b791147c95a4b5c3fe68231ed Mon Sep 17 00:00:00 2001 From: Nicholas Fasching <91689117+njfdev@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:02:48 -0400 Subject: [PATCH] Fix Build Issue on MacOS Apple Silicon --- build_scripts/build_app_deps.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build_scripts/build_app_deps.sh b/build_scripts/build_app_deps.sh index ae3c437..80c0047 100755 --- a/build_scripts/build_app_deps.sh +++ b/build_scripts/build_app_deps.sh @@ -8,6 +8,10 @@ if [[ "$OS" == "Linux" ]]; then LIB_EXT=".so" elif [[ "$OS" == "Darwin" ]]; then LIB_EXT=".dylib" + + # I spent 1.5 hours figuring out that this ENV variable was messing + # up libusb build script on Apple Silicon. + unset IPHONEOS_DEPLOYMENT_TARGET elif [[ "$OS" == "CYGWIN"* || "$OS" == "MINGW"* || "$OS" == "MSYS"* ]]; then LIB_EXT=".dll" else