product(name:package:condition:)

Creates a target dependency on a product from a package dependency.

Target.swift:1314

This declaration was obsoleted in SwiftPM 5.7.

static func product(name: String, package: String, condition: TargetDependencyCondition? = nil) -> Target.Dependency

Parameters

name

The name of the product.

package

The name of the package.

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.