The different types of a target’s dependency on another entity.
SDK
- Xcode 10.2+
Framework
- Swift Package Manager
The different types of a target’s dependency on another entity.
SDK
Framework
static func product(name: String, package: String?) -> Target .Dependency
Creates a dependency on a product from a package dependency.
static func target(name: String) -> Target .Dependency
Creates a dependency on a target in the same package.
static func by Name(name: String) -> Target .Dependency
Creates a by-name dependency that resolves to either a target or a product but after the package graph has been loaded.
init(string Literal: String)
Creates a target dependency instance with the given value.
init(extended Grapheme Cluster Literal: String)
Creates an instance initialized to the given value.
init(unicode Scalar Literal: String)
Creates an instance initialized to the given value.
func encode(to: Encoder)
Encodes this value into the given encoder.
var dependencies: [Target .Dependency]
The target’s dependencies on other entities inside or outside the package.