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