diff options
| author | ruki <[email protected]> | 2022-08-22 22:50:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-22 22:50:15 +0800 |
| commit | 644a3172f67f2620896cbf77e155bdc1c07c2ff2 (patch) | |
| tree | a7aa67d75306d4f0195039ae86e542cb1f984942 | |
| parent | fec57196a1a0a67f3392635fee5a2b3ec9f7be08 (diff) | |
fix info plist for catalyst
| -rw-r--r-- | xmake/rules/xcode/info_plist/xmake.lua | 10 |
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) |
