From 750948bd00312c72c013f442f75e8d8178de0829 Mon Sep 17 00:00:00 2001 From: Byoungchan Lee Date: Sat, 14 Aug 2021 08:36:32 +0900 Subject: [PATCH] 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 Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#34762} --- tools_webrtc/ios/build_ios_libs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools_webrtc/ios/build_ios_libs.py b/tools_webrtc/ios/build_ios_libs.py index 9ae1a79336..d8e05136d2 100755 --- a/tools_webrtc/ios/build_ios_libs.py +++ b/tools_webrtc/ios/build_ios_libs.py @@ -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)