diff options
| author | ruki <[email protected]> | 2022-08-23 00:59:56 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-23 00:59:56 +0800 |
| commit | 3e51aca6b415fdec57c23b1ad430e29a7c1864a5 (patch) | |
| tree | 2f504ea2dc26920b65dffd1dea9d6421a01c01d9 /xmake/rules/xcode/application/build.lua | |
| parent | b07314158a840f5a4828f74ff654b3f242d22d9f (diff) | |
fix link
Diffstat (limited to 'xmake/rules/xcode/application/build.lua')
| -rw-r--r-- | xmake/rules/xcode/application/build.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/xcode/application/build.lua b/xmake/rules/xcode/application/build.lua index fcc428b91..bb4ca080b 100644 --- a/xmake/rules/xcode/application/build.lua +++ b/xmake/rules/xcode/application/build.lua @@ -35,7 +35,9 @@ function _copy_frameworks(frameworkdir, frameworksdir) if path.filename(filepath) == "Versions" then _copy_frameworks(filepath, path.join(frameworksdir, "Versions")) else - os.cp(filepath, path.join(frameworksdir, path.filename(filepath)), {symlink = true}) + local dstpath = path.join(frameworksdir, path.filename(filepath)) + os.tryrm(dstpath) + os.cp(filepath, dstpath, {symlink = true}) end end end |
