<!--
{
  "availability" : [
    "SwiftPM: 5.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/Target/PluginUsage/plugin(name:package:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription6TargetC11PluginUsageO6pluginyAESS_SSSgtcAEmF"
  },
  "title" : "Target.PluginUsage.plugin(name:package:)"
}
-->

# Target.PluginUsage.plugin(name:package:)

Specifies the use of a plug-in product in a package dependency.

```
case plugin(name: String, package: String?)
```

## Parameters

`name`

The name of the plug-in target.

`package`

The name of the package that defines the plug-in target.

---

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)