From c982716c0c6d1de9f641d37edd9104de261dbf06 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 28 Jun 2025 00:50:41 +0800 Subject: fix check tips --- xmake/toolchains/xcode/check.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xmake/toolchains/xcode/check.lua b/xmake/toolchains/xcode/check.lua index 225e84284..a06cb7a86 100644 --- a/xmake/toolchains/xcode/check.lua +++ b/xmake/toolchains/xcode/check.lua @@ -57,7 +57,11 @@ function main(toolchain) config.set("xcode", xcode.sdkdir, {force = true, readonly = true}) config.set("xcode_mobile_provision", xcode.mobile_provision, {force = true, readonly = true}) config.set("xcode_codesign_identity", xcode.codesign_identity, {force = true, readonly = true}) - cprint("checking for Xcode directory ... ${color.success}%s", xcode.sdkdir) + if xcode.sdkdir then + cprint("checking for Xcode directory ... ${color.success}%s", xcode.sdkdir) + else + cprint("checking for Xcode directory ... ${color.nothing}${text.nothing}") + end if xcode.codesign_identity then cprint("checking for Codesign Identity of Xcode ... ${color.success}%s", xcode.codesign_identity) else -- cgit v1.3.1