summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/xcode/info_plist/xmake.lua10
1 files changed, 10 insertions, 0 deletions
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
+ --
+ -- <key>LSRequiresIPhoneOS</key>
+ -- <true/>
+ io.replace(info_plist_file, "<key>LSRequiresIPhoneOS</key>.-<true/>", "")
+ end
+
-- update files and values to the dependent file
dependinfo.files = {sourcefile}
depend.save(dependinfo, dependfile)