summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/bundle/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-14 00:47:25 +0800
committerruki <[email protected]>2020-11-14 00:47:25 +0800
commit0d59f55c4926ed3566538d2f13e8ad6b402a256b (patch)
tree6edd652de8d6c557182217bf5bfa879631f683a9 /xmake/rules/xcode/bundle/xmake.lua
parent3c879da3a536d4f113731bde1f5f8c6cb56a7509 (diff)
improve codesign for simulator app
Diffstat (limited to 'xmake/rules/xcode/bundle/xmake.lua')
-rw-r--r--xmake/rules/xcode/bundle/xmake.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/rules/xcode/bundle/xmake.lua b/xmake/rules/xcode/bundle/xmake.lua
index 43da6e7fa..a3adfa0f9 100644
--- a/xmake/rules/xcode/bundle/xmake.lua
+++ b/xmake/rules/xcode/bundle/xmake.lua
@@ -94,7 +94,11 @@ rule("xcode.bundle")
end
-- do codesign
- codesign(bundledir, target:values("xcode.codesign_identity") or get_config("xcode_codesign_identity"))
+ local codesign_identity = target:values("xcode.codesign_identity") or get_config("xcode_codesign_identity")
+ if target:is_plat("macosx") or (target:is_plat("iphoneos") and target:is_arch("x86_64", "i386")) then
+ codesign_identity = nil
+ end
+ codesign(bundledir, codesign_identity)
end, {dependfile = target:dependfile(bundledir), files = {bundledir, target:targetfile()}})
end)