product(name:package:moduleAliases:condition:)
Creates a target dependency on a product from a package dependency.
- SwiftPM
- 5.7+
static func product(name: String, package: String, moduleAliases: [String : String]? = nil, condition: TargetDependencyCondition? = nil) -> Target.Dependency Parameters
- name
The name of the product.
- package
The name of the package.
- moduleAliases
The module aliases for targets in the product.
- condition
A condition that limits the application of the target dependency. For example, only apply a dependency for a specific platform.
Returns
A Target.Dependency instance.