Enumeration

Target.TargetType

The different types of a target.

Declaration

enum Target.TargetType : String, Encodable

Topics

Enumeration Cases

case regular

A target that contains code for the Swift package’s functionality.

case system

A target that adapts a library on the system to work with Swift packages.

case test

A target that contains tests for the Swift package’s other targets.

Encoding and Decoding

func encode(to: Encoder)

Encodes this value into the given encoder, when the type’s RawValue is String.

Hashing

func hash(into: inout Hasher)

Hashes the target type by feeding the item into the given hasher.

var hashValue: Int

The target type’s hash value.

Operator Functions

static func != (Target.TargetType, Target.TargetType) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Initializers

Instance Properties

Relationships

Conforms To

See Also

Describing the Target Type

var isTest: Bool

A boolean value that indicates if this is a test target.

let type: Target.TargetType

The type of the target.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software