summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/sdks/find_xcode.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/modules/detect/sdks/find_xcode.lua
parentc0aafd82e851cbdbba2292e02df4ac23d00f9ae6 (diff)
improve app rules
Diffstat (limited to 'xmake/modules/detect/sdks/find_xcode.lua')
-rw-r--r--xmake/modules/detect/sdks/find_xcode.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/modules/detect/sdks/find_xcode.lua b/xmake/modules/detect/sdks/find_xcode.lua
index a42ee1985..a1ffca6dc 100644
--- a/xmake/modules/detect/sdks/find_xcode.lua
+++ b/xmake/modules/detect/sdks/find_xcode.lua
@@ -96,7 +96,7 @@ function _find_xcode(sdkdir, xcode_sdkver, plat, arch)
-- find mobile provision only for iphoneos
local mobile_provision
- if is_plat("iphoneos") then
+ if plat == "iphoneos" then
local mobile_provisions = codesign.mobile_provisions()
if mobile_provisions then
mobile_provision = config.get("xcode_mobile_provision")
@@ -174,8 +174,6 @@ function main(sdkdir, opt)
end
end
else
-
- -- trace
if opt.verbose or option.get("verbose") then
cprint("checking for Xcode directory ... ${color.nothing}${text.nothing}")
end