<!--
{
  "availability" : [
    "SwiftPM: 5.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/Target/binaryTarget(name:url:checksum:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription6TargetC06binaryC04name3url8checksumACSS_S2StFZ"
  },
  "title" : "binaryTarget(name:url:checksum:)"
}
-->

# binaryTarget(name:url:checksum:)

Creates a binary target that references a remote artifact.

```
static func binaryTarget(name: String, url: String, checksum: String) -> Target
```

## Parameters

`name`

The name of the target.

`url`

The URL to the binary artifact. This URL must point to an archive
file that contains a binary artifact in its root directory.

`checksum`

The checksum of the archive file that contains the binary
artifact.

## Discussion

Binary targets are only available on Apple platforms.

---

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)