Target

    The basic building block of a Swift package.

    Target.swift:23Target.md
    final class Target

    Each target contains a set of source files that Swift Package Manager compiles into a module or test suite. You can vend targets to other packages by defining products that include the targets.

    A target may depend on other targets within the same package and on products vended by the package’s dependencies.

    Naming the Target

    Configuring File Locations

    Creating a Binary Target

    Creating a System Target

    Creating an Executable Target

    Creating a Plugin Target

    Declaring a Dependency Target

    Configuring the Target

    Describing the Target Type

    See also

    Citizens in PackageDescription

    Type members

    Show obsolete interfaces (8)

    Hide obsolete interfaces

    Show system interfaces (1)

    Hide system interfaces

    Instance members

    Available in CompilerPluginSupport

    Type members