This change updates the create-frameworks.sh script to copy supporting .dSYM
files for each platform's built framework into the output directories. These
debug symbol files are also included in the final XCFramework bundle using
xcodebuild's -debug-symbols option for each platform. Including dSYM files
enhances debugging and crash symbolication support.
Add --deep flag to codesign command to ensure all nested frameworks
within the XCFramework are properly signed, not just the top-level bundle.
Without --deep, only the XCFramework container is signed, but the nested
platform-specific frameworks remain unsigned, causing "invalid or unsupported
format for signature" errors when Swift Package Manager validates the artifact.
This fix resolves issues reported in:
- Issue #212: Cannot archive application due to signature
- Issue #242: XCFramework needs to be signed at the source
The --deep flag ensures that codesign recursively signs all bundle
contents, which is required for XCFramework bundles containing multiple
nested framework bundles.
This adds a simple flag to `create-frameworks.sh`, `-s`, which overrides the mach-o format to instead be a static library. The resulting output frameworks, along with the final XCFramework, are produced as static libraries instead of dynamic libraries.