<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/Target/TargetType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription6TargetC0C4TypeO"
  },
  "title" : "Target.TargetType"
}
-->

# Target.TargetType

The different types of a target.

```
enum TargetType
```

## Topics

### Enumeration Cases

[`case regular`](/documentation/PackageDescription/Target/TargetType/regular)

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

[`case binary`](/documentation/PackageDescription/Target/TargetType/binary)

A target that references a binary artifact.

[`case system`](/documentation/PackageDescription/Target/TargetType/system)

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

[`case test`](/documentation/PackageDescription/Target/TargetType/test)

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

[`case executable`](/documentation/PackageDescription/Target/TargetType/executable)

A target that contains code for an executable’s main module.

[`case plugin`](/documentation/PackageDescription/Target/TargetType/plugin)

A target that provides a package plug-in.

### Creating a Value

### Hashing

### Operator Functions

### Enumeration Cases

[`case macro`](/documentation/PackageDescription/Target/TargetType/macro)

A target that provides a Swift macro.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`Copyable`](/documentation/Swift/Copyable)

[`Escapable`](/documentation/Swift/Escapable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)