diff options
| author | ruki <[email protected]> | 2025-09-20 00:49:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-09-20 00:49:52 +0800 |
| commit | 072c91d17ec55b94e9af3ce7fed09d885b2c2075 (patch) | |
| tree | 74ec1f9673ca22718914e9a32911cfdf00340674 /xmake/rules/xcode/application | |
| parent | 7186aec3786cd31f4dea25716ddf57954bef5bf6 (diff) | |
optimize codesign
Diffstat (limited to 'xmake/rules/xcode/application')
| -rw-r--r-- | xmake/rules/xcode/application/build.lua | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/xmake/rules/xcode/application/build.lua b/xmake/rules/xcode/application/build.lua index 74a8b2431..4d0625bd7 100644 --- a/xmake/rules/xcode/application/build.lua +++ b/xmake/rules/xcode/application/build.lua @@ -87,20 +87,22 @@ function main (target, opt) -- generate embedded.mobileprovision to *.app/embedded.mobileprovision local mobile_provision_embedded = path.join(bundledir, "embedded.mobileprovision") - local mobile_provision = target:values("xcode.mobile_provision") or get_config("xcode_mobile_provision") - if mobile_provision and target:is_plat("iphoneos") then - os.tryrm(mobile_provision_embedded) - local provisions = codesign.mobile_provisions() - if provisions then - local mobile_provision_data = provisions[mobile_provision] - if mobile_provision_data then - io.writefile(mobile_provision_embedded, mobile_provision_data) + if target:is_plat("iphoneos") then + local mobile_provision = target:values("xcode.mobile_provision") or codesign.xcode_mobile_provision() + if mobile_provision then + os.tryrm(mobile_provision_embedded) + local provisions = codesign.mobile_provisions() + if provisions then + local mobile_provision_data = provisions[mobile_provision] + if mobile_provision_data then + io.writefile(mobile_provision_embedded, mobile_provision_data) + end end end end -- do codesign - local codesign_identity = target:values("xcode.codesign_identity") or get_config("xcode_codesign_identity") + local codesign_identity = target:values("xcode.codesign_identity") or codesign.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 |
