Skip to content

Commit 50a004e

Browse files
committed
Include dSYM to iOS framework
1 parent c765a64 commit 50a004e

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

contrib/ios_build.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ cmake ../.. \
5959
-DSDL3_DIR="${SDL3_CMAKE_DIR_IOS}" \
6060
"${CMAKE_COMMON_FLAGS[@]}"
6161

62-
xcodebuild -project FluidSynth.xcodeproj -target libfluidsynth -configuration Release -sdk iphoneos build 2>&1
62+
xcodebuild -project FluidSynth.xcodeproj -target libfluidsynth -configuration Release -sdk iphoneos \
63+
build DEBUG_INFORMATION_FORMAT="dwarf-with-dsym" GCC_GENERATE_DEBUGGING_SYMBOLS=YES 2>&1
6364
cd ..
6465

6566
# Build for iOS simulator
@@ -71,15 +72,19 @@ cmake ../../ \
7172
-DSDL3_DIR="${SDL3_CMAKE_DIR_IOS_SIMULATOR}" \
7273
"${CMAKE_COMMON_FLAGS[@]}"
7374

74-
xcodebuild -project FluidSynth.xcodeproj -target libfluidsynth -configuration Release -sdk iphonesimulator build 2>&1
75+
xcodebuild -project FluidSynth.xcodeproj -target libfluidsynth -configuration Release -sdk iphonesimulator \
76+
build DEBUG_INFORMATION_FORMAT="dwarf-with-dsym" GCC_GENERATE_DEBUGGING_SYMBOLS=YES 2>&1
7577
cd ..
7678

7779
# Create XCFramework from the built dynamic frameworks
7880
echo "Creating XCFramework..."
7981
rm -rf FluidSynth.xcframework
82+
BUILD_DIR_ABSOLUTE=$(pwd)
8083
xcodebuild -create-xcframework \
81-
-framework build-ios/src/Release-iphoneos/FluidSynth.framework \
82-
-framework build-ios-simulator/src/Release-iphonesimulator/FluidSynth.framework \
83-
-output FluidSynth.xcframework
84+
-framework "${BUILD_DIR_ABSOLUTE}/build-ios/src/Release-iphoneos/FluidSynth.framework" \
85+
-debug-symbols "${BUILD_DIR_ABSOLUTE}/build-ios/src/Release-iphoneos/FluidSynth.framework.dSYM" \
86+
-framework "${BUILD_DIR_ABSOLUTE}/build-ios-simulator/src/Release-iphonesimulator/FluidSynth.framework" \
87+
-debug-symbols "${BUILD_DIR_ABSOLUTE}/build-ios-simulator/src/Release-iphonesimulator/FluidSynth.framework.dSYM" \
88+
-output "${BUILD_DIR_ABSOLUTE}/FluidSynth.xcframework"
8489

8590
echo "FluidSynth.xcframework (dynamic framework) built successfully at build/FluidSynth.xcframework"

0 commit comments

Comments
 (0)