summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/application
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-22 22:44:20 +0800
committerruki <[email protected]>2022-08-22 22:44:20 +0800
commitfec57196a1a0a67f3392635fee5a2b3ec9f7be08 (patch)
tree35d249d39bf5160349a5a99d025c2767b3979591 /xmake/rules/xcode/application
parenta82eeeb6a50d00b8fadaf020e545b11d296b6c5b (diff)
use uikit for catalyst and fix ibtool
Diffstat (limited to 'xmake/rules/xcode/application')
-rw-r--r--xmake/rules/xcode/application/load.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/rules/xcode/application/load.lua b/xmake/rules/xcode/application/load.lua
index 354aa5b0c..8be4077a3 100644
--- a/xmake/rules/xcode/application/load.lua
+++ b/xmake/rules/xcode/application/load.lua
@@ -47,7 +47,12 @@ function main (target)
-- add frameworks
if target:is_plat("macosx") then
- target:add("frameworks", "AppKit")
+ local xcode = target:toolchain("xcode")
+ if xcode and xcode:config("appledev") == "catalyst" then
+ target:add("frameworks", "UIKit")
+ else
+ target:add("frameworks", "AppKit")
+ end
else
target:add("frameworks", "UIKit")
end