From 142ffc812dc030dac126e91df987a7f6a14cea40 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 25 Sep 2023 22:53:17 +0800 Subject: improve to find xcode sdk version --- xmake/modules/detect/sdks/find_xcode.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake/modules/detect/sdks/find_xcode.lua b/xmake/modules/detect/sdks/find_xcode.lua index dff7e56cd..1eaa11de2 100644 --- a/xmake/modules/detect/sdks/find_xcode.lua +++ b/xmake/modules/detect/sdks/find_xcode.lua @@ -67,7 +67,8 @@ function _find_xcode_sdkver(sdkdir, opt) if platsdkdir then local dir = find_directory(platsdkdir, sdkdir) if dir then - return dir:match("%d+%.%d+") + local basename = path.basename(dir) + return basename:match("%d+%.%d+") end end end -- cgit v1.3.1