summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/framework/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-20 18:51:02 +0800
committerGitHub <[email protected]>2022-09-20 18:51:02 +0800
commit5d7a01ef08b5d20f43d32a91446933bf641b8cf0 (patch)
tree31f20ad00042acd6c5b115bdccd03220190e2897 /xmake/rules/xcode/framework/xmake.lua
parent51e9ee616e98ee0254e8dd9470d03092bfd4e35b (diff)
Update xmake.lua
Diffstat (limited to 'xmake/rules/xcode/framework/xmake.lua')
-rw-r--r--xmake/rules/xcode/framework/xmake.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/rules/xcode/framework/xmake.lua b/xmake/rules/xcode/framework/xmake.lua
index 86a5a4827..7baae6412 100644
--- a/xmake/rules/xcode/framework/xmake.lua
+++ b/xmake/rules/xcode/framework/xmake.lua
@@ -129,9 +129,6 @@ rule("xcode.framework")
i = i + 1
end
end
- if not os.isdir(resourcesdir) then
- os.mkdir(resourcesdir)
- end
-- link Versions/Current -> Versions/A
-- only for macos, @see https://github.com/xmake-io/xmake/issues/2765
@@ -148,9 +145,8 @@ rule("xcode.framework")
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") and os.isfile("Versions/Current/Resources/Info.plist") then
- os.ln("Versions/Current/Resources/Info.plist", "Info.plist")
+ if os.isdir(resourcesdir) then
+ os.ln("Versions/Current/Resources", "Resources")
end
os.ln(path.join("Versions/Current", target_filename), target_filename)
os.cd(oldir)