summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/detect/sdks/find_xcode_sdkvers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_xcode_sdkvers.lua b/xmake/modules/detect/sdks/find_xcode_sdkvers.lua
index e6bd306d0..47b90d6e7 100644
--- a/xmake/modules/detect/sdks/find_xcode_sdkvers.lua
+++ b/xmake/modules/detect/sdks/find_xcode_sdkvers.lua
@@ -49,7 +49,7 @@ function main(opt)
-- get xcode directory
local xcode_sdkvers = {}
local xcode_dir = opt.xcode_dir or find_xcode_dir()
- if not os.isdir(xcode_dir) then
+ if not xcode_dir or not os.isdir(xcode_dir) then
return xcode_sdkvers
end