From 964f92c7f3afc0e2ac4401f665a3da3e1595575f Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 25 Sep 2023 22:59:53 +0800 Subject: improve to find xcode target name --- 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 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 -- cgit v1.3.1