---
title: targets
framework: swift-package-manager
role: symbol
role_heading: Instance Property
path: swift-package-manager/documentation/packageplugin/libraryproduct/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.

## See Also

### Inspecting a Library Product

- [id](swift-package-manager/documentation/packageplugin/libraryproduct/id.md)
- [name](swift-package-manager/documentation/packageplugin/libraryproduct/name.md)
- [kind](swift-package-manager/documentation/packageplugin/libraryproduct/kind-swift.property.md)
- [LibraryProduct.Kind](swift-package-manager/documentation/packageplugin/libraryproduct/kind-swift.enum.md)
