Satisfying direct dependency requirement for Mergeable Libraries with cross-project references #5823
Unanswered
VitalyYurchenko
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Tuist already supports setting merged and mergeable targets. However, merging only works for direct dependencies:
Source: Configuring your project to use mergeable libraries.
In other words, your merged and mergeable targets should be defined in the same project. Xcode won't merge targets defined in different projects in your workspace.
There's a solution called cross-project reference as described in Managing multiple projects and their dependencies. The idea is to add references to "mergeable" projects in the "merged" project. In the "merged" project's xcodeproj file "mergeable" targets will be listed in
PBXReferenceProxy section
. Then, when linking the "mergeable" targets manually, Xcode would refer targets listed inPBXReferenceProxy section
which would satisfy the direct dependency requirement. Unfortunately, it seems there's no way to tell Tuist to use those "proxy" references.Now, the question is how to set up cross-project references in Tuist and list their targets in Link Binary with Libraries build phase.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions