summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/detect/sdks/find_xcode.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_xcode.lua b/xmake/modules/detect/sdks/find_xcode.lua
index 1eaa11de2..15dbd7bcd 100644
--- a/xmake/modules/detect/sdks/find_xcode.lua
+++ b/xmake/modules/detect/sdks/find_xcode.lua
@@ -82,7 +82,8 @@ function _find_target_minver(sdkdir, sdkver, opt)
local platsdkdir = "Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.*.sdk"
local dir = find_directory(platsdkdir, sdkdir)
if dir then
- target_minver = dir:match("%d+%.%d+")
+ local basename = path.basename(dir)
+ target_minver = basename:match("%d+%.%d+")
else
target_minver = "13.1"
end