diff options
| author | ruki <[email protected]> | 2020-11-14 00:47:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-14 00:47:25 +0800 |
| commit | 0d59f55c4926ed3566538d2f13e8ad6b402a256b (patch) | |
| tree | 6edd652de8d6c557182217bf5bfa879631f683a9 /xmake/rules/xcode/framework/xmake.lua | |
| parent | 3c879da3a536d4f113731bde1f5f8c6cb56a7509 (diff) | |
improve codesign for simulator app
Diffstat (limited to 'xmake/rules/xcode/framework/xmake.lua')
| -rw-r--r-- | xmake/rules/xcode/framework/xmake.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/rules/xcode/framework/xmake.lua b/xmake/rules/xcode/framework/xmake.lua index d84a85c9e..3d8137aeb 100644 --- a/xmake/rules/xcode/framework/xmake.lua +++ b/xmake/rules/xcode/framework/xmake.lua @@ -148,7 +148,11 @@ rule("xcode.framework") -- do codesign, only for dynamic library if target:targetkind() == "shared" then - codesign(contentsdir, 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(contentsdir, codesign_identity) end end, {dependfile = target:dependfile(bundledir), files = {bundledir, target:targetfile()}}) end) |
