Skip to content

Commit

Permalink
Include debug symbols in XCFramework output
Browse files Browse the repository at this point in the history
Note: The -debug-symbols arg requires an absolute path. BCSymbolMap files have a UUID filename, hence the wildcard.

Fixes #1122.

Signed-off-by: Peter Kazazes <peter@peterk.co>
  • Loading branch information
kazazes committed Jun 10, 2021
1 parent 09b029d commit b4f171e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Expand Up @@ -21,7 +21,7 @@ Changes to be released in next version
*

🧱 Build
*
* build.sh: Include debug symbols when building XCFramework

Others
*
Expand Down
10 changes: 9 additions & 1 deletion build.sh
Expand Up @@ -20,7 +20,15 @@ then
if [ -f 'MatrixSDK.xcframework.zip' ]; then rm -rf MatrixSDK.xcframework.zip; fi

# build and zip the xcframework
xcodebuild -create-xcframework -framework MatrixSDK-iOS.xcarchive/Products/Library/Frameworks/MatrixSDK.framework -framework MatrixSDK-iOSSimulator.xcarchive/Products/Library/Frameworks/MatrixSDK.framework -framework MatrixSDK-macOS.xcarchive/Products/Library/Frameworks/MatrixSDK.framework -framework MatrixSDK-MacCatalyst.xcarchive/Products/Library/Frameworks/MatrixSDK.framework -output MatrixSDK.xcframework
xcodebuild -create-xcframework \
-framework MatrixSDK-iOS.xcarchive/Products/Library/Frameworks/MatrixSDK.framework \
-debug-symbols ${PWD}/MatrixSDK-iOS.xcarchive/dSYMs/MatrixSDK.framework.dSYM \
-debug-symbols ${PWD}/MatrixSDK-iOS.xcarchive/BCSymbolMaps/*.bcsymbolmap \
-framework MatrixSDK-iOSSimulator.xcarchive/Products/Library/Frameworks/MatrixSDK.framework \
-debug-symbols ${PWD}/MatrixSDK-iOSSimulator.xcarchive/dSYMs/MatrixSDK.framework.dSYM \
-framework MatrixSDK-macOS.xcarchive/Products/Library/Frameworks/MatrixSDK.framework \
-framework MatrixSDK-MacCatalyst.xcarchive/Products/Library/Frameworks/MatrixSDK.framework \
-output MatrixSDK.xcframework
zip -ry MatrixSDK.xcframework.zip MatrixSDK.xcframework
else
xcodebuild -workspace MatrixSDK.xcworkspace/ -scheme MatrixSDK -sdk iphonesimulator -destination 'name=iPhone 5s'
Expand Down

0 comments on commit b4f171e

Please sign in to comment.