---
title: "products(named:)"
framework: swift-package-manager
role: symbol
role_heading: Instance Method
path: "swift-package-manager/documentation/packageplugin/package/products(named:)"
---

# products(named:)

The list of products matching the given names.

## Declaration

```swift
func products(named productNames: [String]) throws -> [any Product]
```

## Discussion

Discussion Throws an error if any of the products cannot be found.

## See Also

### Inspecting Package Products

- [products](swift-package-manager/documentation/packageplugin/package/products.md)
- [products(ofType:)](swift-package-manager/documentation/packageplugin/package/products(oftype:).md)
