From c3bec4b1e483f5bcf443cf1a26b3b8bd8cfa2fba Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 16 Dec 2020 23:49:44 +0800 Subject: improve app rules --- xmake/rules/xcode/application/build.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/rules/xcode/application/build.lua') diff --git a/xmake/rules/xcode/application/build.lua b/xmake/rules/xcode/application/build.lua index 432ab8bf9..a83e42684 100644 --- a/xmake/rules/xcode/application/build.lua +++ b/xmake/rules/xcode/application/build.lua @@ -41,7 +41,7 @@ function main (target, opt) -- copy target file local binarydir = contentsdir - if is_plat("macosx") then + if target:is_plat("macosx") then binarydir = path.join(contentsdir, "MacOS") end os.vcp(target:targetfile(), path.join(binarydir, path.filename(target:targetfile()))) @@ -72,7 +72,7 @@ function main (target, opt) -- generate embedded.mobileprovision to *.app/embedded.mobileprovision local mobile_provision_embedded = path.join(bundledir, "embedded.mobileprovision") local mobile_provision = target:values("xcode.mobile_provision") or get_config("xcode_mobile_provision") - if mobile_provision and is_plat("iphoneos") then + if mobile_provision and target:is_plat("iphoneos") then os.tryrm(mobile_provision_embedded) local provisions = codesign.mobile_provisions() if provisions then -- cgit v1.3.1