From 644a3172f67f2620896cbf77e155bdc1c07c2ff2 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 22 Aug 2022 22:50:15 +0800 Subject: fix info plist for catalyst --- xmake/rules/xcode/info_plist/xmake.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xmake/rules/xcode/info_plist/xmake.lua b/xmake/rules/xcode/info_plist/xmake.lua index bd991b6e1..de2a8514b 100644 --- a/xmake/rules/xcode/info_plist/xmake.lua +++ b/xmake/rules/xcode/info_plist/xmake.lua @@ -81,6 +81,16 @@ rule("xcode.info_plist") return maps[variable] end) + -- patch some entries for mac catalyst + local xcode = target:toolchain("xcode") + if xcode and xcode:config("appledev") == "catalyst" then + -- remove entry for "LSRequiresIPhoneOS" - not supported on macOS + -- + -- LSRequiresIPhoneOS + -- + io.replace(info_plist_file, "LSRequiresIPhoneOS.-", "") + end + -- update files and values to the dependent file dependinfo.files = {sourcefile} depend.save(dependinfo, dependfile) -- cgit v1.3.1