diff options
| author | ruki <[email protected]> | 2023-09-25 22:59:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-09-25 22:59:53 +0800 |
| commit | 964f92c7f3afc0e2ac4401f665a3da3e1595575f (patch) | |
| tree | 763e3d3c50406026fabe7f14da5357e868fb9f8b | |
| parent | 142ffc812dc030dac126e91df987a7f6a14cea40 (diff) | |
improve to find xcode target name
| -rw-r--r-- | xmake/modules/detect/sdks/find_xcode.lua | 3 |
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 |
