summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/application/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/xcode/application/xmake.lua')
-rw-r--r--xmake/rules/xcode/application/xmake.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/rules/xcode/application/xmake.lua b/xmake/rules/xcode/application/xmake.lua
index 724018da2..781ece19f 100644
--- a/xmake/rules/xcode/application/xmake.lua
+++ b/xmake/rules/xcode/application/xmake.lua
@@ -38,6 +38,13 @@ rule("xcode.application")
target:set("targetdir", appdir)
end
+ -- add frameworks
+ if is_plat("macosx") then
+ target:add("frameworks", "AppKit")
+ else
+ target:add("frameworks", "UIKit")
+ end
+
-- register clean files for `xmake clean`
target:add("cleanfiles", appdir)
end)