Skip to content

Add script to build the Swift XCFramework - #3

Merged
setoelkahfi merged 1 commit into
mainfrom
swift-sdk/xcframework-build
Sep 26, 2026
Merged

setoelkahfi merged 1 commit into
mainfrom
swift-sdk/xcframework-build

Conversation

@setoelkahfi

Copy link
Copy Markdown
Collaborator

.github/scripts/build-swift-xcframework.sh (make swift-xcframework)
builds demucs-ffi as a static library for iOS, macOS, tvOS and visionOS,
generates the Swift bindings, and packs DemucsFramework.xcframework into
a reproducible zip with its SwiftPM checksum under dist/swift. tvOS and
visionOS are tier 3, so they use nightly with -Z build-std.

Co-Authored-By: siGit Code noreply@sigit.si
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com


Stack created with GitHub Stacks CLI • Give Feedback 💬

@setoelkahfi
setoelkahfi added this pull request to stack #5 September 26, 2026 08:48
@setoelkahfi setoelkahfi self-assigned this Sep 26, 2026
@setoelkahfi
setoelkahfi marked this pull request as ready for review September 26, 2026 08:58
@setoelkahfi
setoelkahfi force-pushed the swift-sdk/xcframework-build branch 2 times, most recently from 57f728c to 8de4590 Compare September 26, 2026 10:49

@sigit-code-review sigit-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds build-swift-xcframework.sh (invoked via make swift-xcframework) that builds demucs-ffi as a staticlib for seven Apple targets (iOS, iOS-sim, tvOS, tvOS-sim, visionOS, visionOS-sim, macOS), generates UniFFI Swift bindings from the iOS slice, assembles a DemucsFramework.xcframework, then zips it reproducibly (fixed timestamps, sorted entries, 0o644 perms) and writes the SwiftPM checksum and crate version under dist/swift. tvOS/visionOS are tier 3 so they use +nightly -Z build-std. .gitignore adds dist/; the Makefile gains the swift-xcframework target. Reviewers should look first at the swift package compute-checksum call and the build_target invocation order.


Automated review by siGit Code Review · commit 8de4590 · see the review dashboard

Comment thread .github/scripts/build-swift-xcframework.sh
Base automatically changed from feature/pensive-fermat-li942i to main September 26, 2026 11:20
.github/scripts/build-swift-xcframework.sh (make swift-xcframework)
builds demucs-ffi as a static library for iOS, macOS, tvOS and visionOS,
generates the Swift bindings, and packs DemucsFramework.xcframework into
a reproducible zip with its SwiftPM checksum under dist/swift. tvOS and
visionOS are tier 3, so they use nightly with -Z build-std.

Co-Authored-By: siGit Code <noreply@sigit.si>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@setoelkahfi
setoelkahfi force-pushed the swift-sdk/xcframework-build branch from 8de4590 to 7427c85 Compare September 26, 2026 11:20
@setoelkahfi
setoelkahfi merged commit 7b7e0af into main Sep 26, 2026
7 checks passed
@setoelkahfi
setoelkahfi deleted the swift-sdk/xcframework-build branch September 26, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant