summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/application/install.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-16 23:49:44 +0800
committerruki <[email protected]>2020-12-16 23:49:44 +0800
commitc3bec4b1e483f5bcf443cf1a26b3b8bd8cfa2fba (patch)
tree5ba61ef9a096a332a2862cb158fe4c19fd38d76f /xmake/rules/xcode/application/install.lua
parentc0aafd82e851cbdbba2292e02df4ac23d00f9ae6 (diff)
improve app rules
Diffstat (limited to 'xmake/rules/xcode/application/install.lua')
-rw-r--r--xmake/rules/xcode/application/install.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/xcode/application/install.lua b/xmake/rules/xcode/application/install.lua
index bc76248ab..dee303ce4 100644
--- a/xmake/rules/xcode/application/install.lua
+++ b/xmake/rules/xcode/application/install.lua
@@ -62,13 +62,13 @@ end
-- main entry
function main (target)
- if is_plat("iphoneos") then
- if is_arch("x86_64", "i386") then
+ if target:is_plat("iphoneos") then
+ if target:is_arch("x86_64", "i386") then
_install_for_ios_simulator(target)
else
_install_for_ios(target)
end
- elseif is_plat("macosx") then
+ elseif target:is_plat("macosx") then
_install_for_macosx(target)
end
end