Hello Tuist community
Hopefully this is the right place to raise and discuss this!
We are moving our project to Tuist, and came across an issue which currently blocks us from continuing -
We have several projects that need a test host to run the tests. Rather than adding a test host target to each, we created a TestHost project with an app
target, which is shared between the different projects. This project is used by manually dragging it to the project in which its used, then adding it to the `Target Dependencies" build phase.
We would like to do something similar with the Tuist configuration. However, simply adding something like:
.project(target: "TestHost", path: "../TestHost"),
To the relevant target
’s dependencies
seems to do nothing. The path and name are OK, and there are other dependencies - it just seems like adding an app target from another project as a dependency doesn’t work. Adding it manually after generating the project (by dragging the TestHost project to be under the project, and manually adding it to Target Dependencies
) works fine. Also, I would like to mention that the build settings of TEST_HOST
and BUNDLE_LOADER
are set as expected, so we can narrow the issue to the addition of the dependency.
I do see some fixtures in the Tuist repo with app
target as a dependency, but as much as I could tell - none where the target is on another project.
We would love to hear any insights you have about this issue, and/or guidance as to where to look in the code (e.g. - is there a place in the code where you would expect this to be added as a dependency, but it’s not? What are some classes/areas in the code that seems most relevant to this?).
Thank you, and have a lovely rest of the day!