Pass dSYM when creating XCFramework only if dSYM exists

Enabling bitcode doesn't seem to create a separate dSYM.
To make it work in this configuration, when creating an XCFramework,
pass dSYM only if it exists.

Bug: none
Change-Id: I6d95dc765accc10a70caeb88063d05eeea630dd1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/228700
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34762}
This commit is contained in:
Byoungchan Lee 2021-08-14 08:36:32 +09:00 committed by WebRTC LUCI CQ
parent ba0a306585
commit 750948bd00

View File

@ -332,9 +332,10 @@ def main():
cmd += [
'-framework',
os.path.abspath(os.path.join(framework_path, SDK_FRAMEWORK_NAME)),
'-debug-symbols',
os.path.abspath(os.path.join(framework_path, SDK_DSYM_NAME))
]
dsym_full_path = os.path.join(framework_path, SDK_DSYM_NAME)
if os.path.exists(dsym_full_path):
cmd += ['-debug-symbols', os.path.abspath(dsym_full_path)]
_RunCommand(cmd)