-
Notifications
You must be signed in to change notification settings - Fork 123
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
Support SPM resource bundles #223
Comments
Do note that for Homebrew, we had some trouble because they didn't like that we were installing the binary + the bundle in the We couldn't just move the bundle somewhere else, the (relative) path to the bundle is hardcoded in the binary (and controlled by Apple/Swift). We ended up installing everything in See these Homebrew PRs for the relevant discussions: Homebrew/homebrew-core#86408 and Homebrew/homebrew-core#86446. |
As a temporary workaround, we re-added our |
I am working to resolve this issue at tid-kijyun/Mint. SPM outputs a file named |
As documented in the Mint readme, SPM now supports resource bundles (since 5.3).
With SwiftGen 6.5 we've switched over to fully using SPM for this, but apparently during installation Mint is getting rid of the resource bundles:
Tried it locally as well, and indeed the build folder only contains:
Where it should contain:
To make things a bit spicier, we don't control the name of the bundle, we just use
Bundle.module
in Swift code. And in this specific case, it is a resource bundle for a framework the binary depends on (calledSwiftGenCLI
). It is defined here in Package.swift.The text was updated successfully, but these errors were encountered: