From dc9d1b09583397e37f353f2d8bb6fe45bf5dfbed Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 13 Nov 2020 22:53:28 +0800 Subject: improve framework again --- xmake/rules/xcode/framework/xmake.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmake/rules/xcode/framework') diff --git a/xmake/rules/xcode/framework/xmake.lua b/xmake/rules/xcode/framework/xmake.lua index 31bfcb6f6..d84a85c9e 100644 --- a/xmake/rules/xcode/framework/xmake.lua +++ b/xmake/rules/xcode/framework/xmake.lua @@ -137,9 +137,10 @@ rule("xcode.framework") os.tryrm("Headers") os.tryrm("Resources") os.tryrm(target_filename) + os.tryrm("Info.plist") os.ln("Versions/Current/Headers", "Headers") os.ln("Versions/Current/Resources", "Resources") - if target:is_plat("iphoneos", "watchos") then + if target:is_plat("iphoneos", "watchos") and os.isfile("Versions/Current/Resources/Info.plist") then os.ln("Versions/Current/Resources/Info.plist", "Info.plist") end os.ln(path.join("Versions/Current", target_filename), target_filename) -- cgit v1.3.1