Skip to content

Conversation

@pepicrft
Copy link
Contributor

Summary

Command line tools, macros, and XPC services can have resources embedded directly. When supportsResources returned false for these product types, Tuist's ResourcesProjectMapper would try to create a separate bundle target for them, which fails because these products cannot depend on bundles.

This change makes supportsResources return true for commandLineTool, macro, and xpc, so resources are added directly to these targets instead of creating an invalid bundle dependency.

Context

After the recent change to restore static framework resources (tuist/tuist#9081), CI started failing with errors like:

Target tuist has platforms 'macOS' and product 'command line tool' and depends on target Tuist_tuist of type 'bundle' and platforms 'macOS' which is an invalid or not yet supported combination.

The root cause was a mismatch between PackageInfo.Target.TargetType.supportsResources (which returns true for SwiftPM executable targets) and XcodeGraph.Target.supportsResources (which was returning false for commandLineTool).

… xpc

Command line tools, macros, and XPC services can have resources embedded
directly. When supportsResources returned false for these product types,
Tuist's ResourcesProjectMapper would try to create a separate bundle target
for them, which fails because these products cannot depend on bundles.

This change makes supportsResources return true for commandLineTool, macro,
and xpc, so resources are added directly to these targets instead of
creating an invalid bundle dependency.
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jan 14, 2026
@dosubot
Copy link

dosubot bot commented Jan 14, 2026

Related Documentation

Checked 1 published document(s) in 0 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

@dosubot dosubot bot added the bug Something isn't working label Jan 14, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 14, 2026
@pepicrft pepicrft requested review from a team and cschmatzler and removed request for a team January 14, 2026 15:06
@pepicrft pepicrft merged commit a39d28e into main Jan 14, 2026
7 checks passed
@pepicrft pepicrft deleted the fix/command-line-tool-supports-resources branch January 14, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants