byName(name:condition:)
Creates a dependency that resolves to either a target or a product with the specified name.
- SwiftPM
- 5.3+
static func byName(name: String, condition: TargetDependencyCondition? = nil) -> Target.Dependency
Parameters
Returns
A Target.Dependency
instance.
Swift Package Manager creates the by-name dependency after it has loaded the package graph.