diff options
| -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 |
