Skip to content
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

Static Library Targets Do Not Support Resources #6172

Open
iteracticman opened this issue Apr 11, 2024 · 1 comment
Open

Static Library Targets Do Not Support Resources #6172

iteracticman opened this issue Apr 11, 2024 · 1 comment
Labels
good first issue Good for newcomers type:need/problem Report needs or problems you came across that are not bugs

Comments

@iteracticman
Copy link
Collaborator

What problem or need do you have?

When trying to use a Target with type .staticLibrary that contains resources tuist generate fails with error message "Target ... cannot contain resources. static library targets do not support resource". At least when used in Projects where both disableSynthesizedResourceAccessors and disableBundleAccessors are set to true.

This probably makes sense, but the there should be hint in the error message that this would be possible is those settings were changed.

Related Slack discussion: https://tuistapp.slack.com/archives/CCXC295QS/p1712754427922909?thread_ts=1712682908.272429&cid=CCXC295QS

Note: Maybe the same/similar issue for .staticFramework targets.

Potential solution

No response

macOS version

14

Tuist version

4.9.0

Xcode version

15.3

@iteracticman iteracticman added the type:need/problem Report needs or problems you came across that are not bugs label Apr 11, 2024
@fortmarek fortmarek added the good first issue Good for newcomers label Apr 11, 2024
@pepicrft
Copy link
Contributor

This probably makes sense, but the there should be hint in the error message that this would be possible is those settings were changed.

This is a good point. For whoever takes this, is a matter of improving the error message to indicate that by disabling the synthesizing features, you are also preventing libraries from having resources through an auto-generated bundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers type:need/problem Report needs or problems you came across that are not bugs
Projects
None yet
Development

No branches or pull requests

3 participants