diff options
| author | ruki <[email protected]> | 2022-08-22 22:44:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-22 22:44:20 +0800 |
| commit | fec57196a1a0a67f3392635fee5a2b3ec9f7be08 (patch) | |
| tree | 35d249d39bf5160349a5a99d025c2767b3979591 /xmake/rules/xcode/storyboard/xmake.lua | |
| parent | a82eeeb6a50d00b8fadaf020e545b11d296b6c5b (diff) | |
use uikit for catalyst and fix ibtool
Diffstat (limited to 'xmake/rules/xcode/storyboard/xmake.lua')
| -rw-r--r-- | xmake/rules/xcode/storyboard/xmake.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/xmake/rules/xcode/storyboard/xmake.lua b/xmake/rules/xcode/storyboard/xmake.lua index d96a1c002..3db9db4c3 100644 --- a/xmake/rules/xcode/storyboard/xmake.lua +++ b/xmake/rules/xcode/storyboard/xmake.lua @@ -65,8 +65,16 @@ rule("xcode.storyboard") end local argv = {"--errors", "--warnings", "--notices", "--auto-activate-custom-fonts", "--output-format", "human-readable-text"} if target:is_plat("macosx") then - table.insert(argv, "--target-device") - table.insert(argv, "mac") + local xcode = target:toolchain("xcode") + if xcode and xcode:config("appledev") == "catalyst" then + table.insert(argv, "--platform") + table.insert(argv, "macosx") + table.insert(argv, "--target-device") + table.insert(argv, "ipad") + else + table.insert(argv, "--target-device") + table.insert(argv, "mac") + end elseif target:is_plat("iphoneos") then table.insert(argv, "--target-device") table.insert(argv, "iphone") |
