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/run.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/rules/xcode/application/run.lua') diff --git a/xmake/rules/xcode/application/run.lua b/xmake/rules/xcode/application/run.lua index 19bbf9b85..14a7c0f12 100644 --- a/xmake/rules/xcode/application/run.lua +++ b/xmake/rules/xcode/application/run.lua @@ -87,9 +87,9 @@ end -- main entry function main (target, opt) - if is_plat("macosx") then + if target:is_plat("macosx") then _run_on_macosx(target, opt) - elseif is_plat("iphoneos") and is_arch("x86_64", "i386") then + elseif target:is_plat("iphoneos") and target:is_arch("x86_64", "i386") then _run_on_simulator(target, opt) else raise("we can only run application on macOS or simulator!") -- cgit v1.3.1