---
title: targets
framework: swift-package-manager
role: symbol
role_heading: Instance Property
path: swift-package-manager/documentation/packageplugin/executableproduct/targets
---

# targets

The targets that directly comprise the product, in the order in which they are declared in the package manifest.

## Declaration

```swift
let targets: [any Target]
```

## Discussion

Discussion The product contains the transitive closure of the these targets and their dependencies. For an ExecutableProduct, exactly one of the targets in this list must be an ExecutableTarget.

## See Also

### Inspecting an Executable Target

- [id](swift-package-manager/documentation/packageplugin/executableproduct/id.md)
- [name](swift-package-manager/documentation/packageplugin/executableproduct/name.md)
- [mainTarget](swift-package-manager/documentation/packageplugin/executableproduct/maintarget.md)
