Skip to content

Support static xcframework packaging in build-xcframework.sh #3322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 26, 2025

Conversation

richwaters
Copy link
Contributor

This commit allows for the building of a static xcframework by adding a BUILD_STATIC_XCFRAMEWORK option. When enabled, the build-xcframework.sh script builds a static whisper.xcframework.

The motivation for this change is so that command line tools can link whisper.cpp without forcing users to install the whisper.xcframework separately.

@danbev
Copy link
Member

danbev commented Jul 21, 2025

@richwaters Thanks for the pull request!

I've not linked against a static xcframework before and create this example. Is this similar to how you are linking with the static whisper.cpp xcframework?

@richwaters
Copy link
Contributor Author

@richwaters Thanks for the pull request!

I've not linked against a static xcframework before and create this example. Is this similar to how you are linking with the static whisper.cpp xcframework?

Thanks for the response. I'm linking to the static xcframework via a binary target in Package.swift, but I ran your test example, and it works for me.

richwaters and others added 4 commits July 26, 2025 05:51
BUILD_STATIC_XCFRAMEWORK option. When enabled, the build-xcframework.sh
script builds a self-contained static whisper.xcframework.

The motivation for this change is so that command line binaries can link
whisper.cpp without forcing users to install the whisper.xcframework
separately.
Co-authored-by: Daniel Bevenius <[email protected]>
@danbev danbev force-pushed the feature/static-xcframework branch 2 times, most recently from 2e09069 to 49b2c69 Compare July 26, 2025 08:51
@danbev danbev merged commit e7bf029 into ggml-org:master Jul 26, 2025
98 of 110 checks passed
@richwaters richwaters deleted the feature/static-xcframework branch July 27, 2025 23:21
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.

2 participants