Skip to content

Commit 3fbd469

Browse files
authored
Merge pull request #5519 from xmake-io/app
fix install dylib for macos app #5515
2 parents 8dd37a6 + b6ba63e commit 3fbd469

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xmake/rules/xcode/application/build.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ function main (target, opt)
5656
-- copy dependent dynamic libraries and frameworks
5757
for _, dep in ipairs(target:orderdeps()) do
5858
if dep:kind() == "shared" then
59+
if not os.isdir(frameworksdir) then
60+
os.mkdir(frameworksdir)
61+
end
5962
local frameworkdir = dep:data("xcode.bundle.rootdir")
6063
if dep:rule("xcode.framework") and frameworkdir then
61-
if not os.isdir(frameworkdir) then
62-
os.mkdir(frameworksdir)
63-
end
6464
os.cp(frameworkdir, frameworksdir, {symlink = true})
6565
else
66-
os.vcp(dep:targetfile(), binarydir)
66+
os.vcp(dep:targetfile(), frameworksdir)
6767
end
6868
end
6969
end

0 commit comments

Comments
 (0)