<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/Target/Dependency/productItem(name:package:moduleAliases:condition:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription6TargetC10DependencyO11productItemyAESS_SSSgSDyS2SGSgAA0cD9ConditionVSgtcAEmF"
  },
  "title" : "Target.Dependency.productItem(name:package:moduleAliases:condition:)"
}
-->

# Target.Dependency.productItem(name:package:moduleAliases:condition:)

A dependency on a product.

```
case productItem(name: String, package: String?, moduleAliases: [String : String]?, condition: TargetDependencyCondition?)
```

## Parameters

`name`

The name of the product.

`package`

The name of the package.

`moduleAlias`

The module aliases for targets in the product.

`condition`

A condition that limits the application of the target dependency. For example, only apply a dependency for a specific platform.

---

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)