<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/Product/executable(name:targets:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription7ProductC10executable4name7targetsACSS_SaySSGtFZ"
  },
  "title" : "executable(name:targets:)"
}
-->

# executable(name:targets:)

Creates an executable package product.

```
static func executable(name: String, targets: [String]) -> Product
```

## Parameters

`name`

The name of the executable product.

`targets`

The targets to bundle into an executable product.

## Return Value

A `Product` instance.

---

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)