diff options
| author | ruki <[email protected]> | 2024-08-28 08:35:21 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-28 08:35:21 +0800 |
| commit | 3fbd46931b4e51b9120b8ec15e8adb612fd222ec (patch) | |
| tree | c4c0fe9f105f51bf240e008f545715dcc885b51d | |
| parent | 8dd37a697c4cb22223908adab6937f464f5caeda (diff) | |
| parent | b6ba63e94d5bb3c27131f76d85031aa275755bd4 (diff) | |
Merge pull request #5519 from xmake-io/app
fix install dylib for macos app #5515
| -rw-r--r-- | xmake/rules/xcode/application/build.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/rules/xcode/application/build.lua b/xmake/rules/xcode/application/build.lua index 736de948c..a06477069 100644 --- a/xmake/rules/xcode/application/build.lua +++ b/xmake/rules/xcode/application/build.lua @@ -56,14 +56,14 @@ function main (target, opt) -- copy dependent dynamic libraries and frameworks for _, dep in ipairs(target:orderdeps()) do if dep:kind() == "shared" then + if not os.isdir(frameworksdir) then + os.mkdir(frameworksdir) + end local frameworkdir = dep:data("xcode.bundle.rootdir") if dep:rule("xcode.framework") and frameworkdir then - if not os.isdir(frameworkdir) then - os.mkdir(frameworksdir) - end os.cp(frameworkdir, frameworksdir, {symlink = true}) else - os.vcp(dep:targetfile(), binarydir) + os.vcp(dep:targetfile(), frameworksdir) end end end |
