summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-20 22:42:55 +0800
committerruki <[email protected]>2022-09-20 22:42:55 +0800
commit51e9ee616e98ee0254e8dd9470d03092bfd4e35b (patch)
tree7c14bba87c1f545b6edd9764f32300034f1b7bb6 /xmake/rules/xcode
parent59a3ef6f88dbcadcc6c79236761fc17f7a334613 (diff)
improve info.plist #2765
Diffstat (limited to 'xmake/rules/xcode')
-rw-r--r--xmake/rules/xcode/info_plist/xmake.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/rules/xcode/info_plist/xmake.lua b/xmake/rules/xcode/info_plist/xmake.lua
index de2a8514b..ddcc30336 100644
--- a/xmake/rules/xcode/info_plist/xmake.lua
+++ b/xmake/rules/xcode/info_plist/xmake.lua
@@ -52,7 +52,13 @@ rule("xcode.info_plist")
progress.show(opt.progress, "${color.build.object}processing.xcode.$(mode) %s", sourcefile)
-- process and generate Info.plist
- local info_plist_file = path.join(target:rule("xcode.framework") and resourcesdir or contentsdir, path.filename(sourcefile))
+ -- https://github.com/xmake-io/xmake/issues/2765#issuecomment-1251738622
+ local info_plist_file
+ if target:rule("xcode.framework") and target:is_plat("macosx") then
+ info_plist_file = path.join(resourcesdir, path.filename(sourcefile))
+ else
+ info_plist_file = path.join(contentsdir, path.filename(sourcefile))
+ end
local maps =
{
DEVELOPMENT_LANGUAGE = "en",