From 51e9ee616e98ee0254e8dd9470d03092bfd4e35b Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 20 Sep 2022 22:42:55 +0800 Subject: improve info.plist #2765 --- xmake/rules/xcode/info_plist/xmake.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'xmake/rules/xcode') 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", -- cgit v1.3.1