Question or problem
Hi! I have a project with several static library targets and one static framework target, that depends on libraries. I want static libraries to be in “Link Binary With Libraries“ section of static framework, so that libraries would be “embedded” into framework.
The following code just adds to “target dependency” but not to “link binary with libraries“.
let staticFramework: Target = .makeTarget(
product: .staticFramework,
dependencies: [.target(name: "StaticLib"), .target(name: "StaticLib2")],
// ...
)
I also tried using TargetDependency.library(path: ), but it did not work too. As far as I tested I could add static library to “Link binary with library“ only for app target. Is there a way to add libraries as I want?
Context
- Tuist version: 4.83.0
