-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
Resources bundle not generated for SPM dependency #4505
Comments
It seems there is an issue with automatic lproj resources. Duplicate of #4435 |
After following the suggestion in #4435 (comment), I forked AppCenter and added an explicit |
I just had a look into it with the following findings:
|
Describe the bug and the expected behavior
When integrating the AppCenter SDK as a SPM dependency via the Dependencies.swift file, the generated product targets in the
AppCenter
project are missing the resources / resource bundles.The AppCenter Package.swift file neither explicitly declares sources nor resources, so I'd assume that Tuist would find them via the
**/*.lproj
glob from thedefaultResourcePaths
, but this doesn't seem to be the case.As a result, there are missing strings (see second screenshot).
At first I thought this is related to #3785, as
SWIFTPM_MODULE_BUNDLE
is used within the AppCenter code, but Tuist isn't even generating the resources bundle that SwiftPM would generate, which is why I don't think the bundle accessor is the problem.Reproduction steps
Sample project: app_with_spm_dependencies.zip
Steps to reproduce the bug:
tuist fetch && tuist generate
AppCenter
project inTuist > Dependencies > SwiftPackageManager > .build > checkouts
Screenshots
Additional context
main
at the time of issue creation)The text was updated successfully, but these errors were encountered: