From 78fe2284e04a301742fc6ad9fc5eb574ccd68bd5 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Wed, 8 May 2024 11:32:31 +0800 Subject: [PATCH] Keep the dSYM when building XCFramework --- .github/workflows/CD.yml | 1 + Scripts/create-xcframework.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 4729b625..0406415b 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -36,6 +36,7 @@ jobs: - name: Create XCFramework run: | set -o pipefail + export MACH_O_TYPE="${{ matrix.MACH_O_TYPE }}" ./Scripts/create-xcframework.sh ./Scripts/sign-xcframework.sh diff --git a/Scripts/create-xcframework.sh b/Scripts/create-xcframework.sh index e03e216b..a94cd672 100755 --- a/Scripts/create-xcframework.sh +++ b/Scripts/create-xcframework.sh @@ -37,6 +37,9 @@ COMMAND_ARGS="" for CURRENT_PLATFORM in "${PLATFORMS[@]}" do COMMAND_ARGS="${COMMAND_ARGS} -framework ${SRCROOT}/build/${CURRENT_PLATFORM}/SDWebImage.framework" + if [[ $MACH_O_TYPE != "staticlib" ]]; then + COMMAND_ARGS="${COMMAND_ARGS} -debug-symbols ${SRCROOT}/build/${CURRENT_PLATFORM}/SDWebImage.framework.dSYM" + fi done # Combine XCFramework