Skip to content

Commit

Permalink
Keep the dSYM when building XCFramework
Browse files Browse the repository at this point in the history
  • Loading branch information
dreampiggy committed May 8, 2024
1 parent 48bb2c9 commit 78fe228
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions Scripts/create-xcframework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78fe228

Please sign in to comment.