From 33d096eeb6f4b759903c748f8d6bf4950e49bd40 Mon Sep 17 00:00:00 2001 From: csmartdalton Date: Mon, 5 Aug 2024 22:46:28 +0000 Subject: [PATCH] Add a premake message when Xcode command line tools isn't installed Diffs= 949c70600 Add a premake message when Xcode command line tools isn't installed (#7756) Co-authored-by: Chris Dalton <99840794+csmartdalton@users.noreply.github.com> --- .rive_head | 2 +- build/rive_build_config.lua | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.rive_head b/.rive_head index b0804700..17eacd61 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -4bf7c75453f0fc3fec1519a9a3dfe7a4ed63a054 +949c70600a6c30bfe3ef6e59685235407af1a323 diff --git a/build/rive_build_config.lua b/build/rive_build_config.lua index 8396eeb2..cfac7082 100644 --- a/build/rive_build_config.lua +++ b/build/rive_build_config.lua @@ -396,7 +396,14 @@ filter({}) if os.host() == 'macosx' then iphoneos_sysroot = os.outputof('xcrun --sdk iphoneos --show-sdk-path') + if iphoneos_sysroot == nil then + error('Unable to locate iphoneos sdk. Please ensure Xcode Command Line Tools are installed.') + end + iphonesimulator_sysroot = os.outputof('xcrun --sdk iphonesimulator --show-sdk-path') + if iphonesimulator_sysroot == nil then + error('Unable to locate iphonesimulator sdk. Please ensure Xcode Command Line Tools are installed.') + end filter('system:ios') do