Keep the dSYM when building XCFramework

This commit is contained in:
DreamPiggy 2024-05-08 11:32:31 +08:00
parent 48bb2c9604
commit 78fe2284e0
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,7 @@ jobs:
- name: Create XCFramework - name: Create XCFramework
run: | run: |
set -o pipefail set -o pipefail
export MACH_O_TYPE="${{ matrix.MACH_O_TYPE }}"
./Scripts/create-xcframework.sh ./Scripts/create-xcframework.sh
./Scripts/sign-xcframework.sh ./Scripts/sign-xcframework.sh

View File

@ -37,6 +37,9 @@ COMMAND_ARGS=""
for CURRENT_PLATFORM in "${PLATFORMS[@]}" for CURRENT_PLATFORM in "${PLATFORMS[@]}"
do do
COMMAND_ARGS="${COMMAND_ARGS} -framework ${SRCROOT}/build/${CURRENT_PLATFORM}/SDWebImage.framework" 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 done
# Combine XCFramework # Combine XCFramework