<!--
{
  "availability" : [
    "SwiftPM: 5.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/Target/checksum",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription6TargetC8checksumSSSgvp"
  },
  "title" : "checksum"
}
-->

# checksum

The checksum for the archive file that contains the referenced binary
artifact.

```
final var checksum: String?
```

## Discussion

If you make a remote binary framework available as a Swift package,
declare a remote, or *URL-based*, binary target in your package manifest
with [`binaryTarget(name:url:checksum:)`](/documentation/PackageDescription/Target/binaryTarget(name:url:checksum:)). Always run `swift package compute-checksum path/to/MyFramework.zip` at the command line to
make sure you create a correct SHA256 checksum.

For more information, see [Distributing binary frameworks as Swift packages](https://developer.apple.com/documentation/xcode/distributing-binary-frameworks-as-swift-packages).

---

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)