<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -",
    "watchOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LightweightCodeRequirements",
  "identifier" : "/documentation/LightweightCodeRequirements/InfoPlistHash",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "LightweightCodeRequirements"
    ],
    "preciseIdentifier" : "s:27LightweightCodeRequirements13InfoPlistHashV"
  },
  "title" : "InfoPlistHash"
}
-->

# InfoPlistHash

A constraint that tests the specified hash against the Information property list hash stored in the code signature of the process or code file.

```
struct InfoPlistHash
```

## Topics

### Initializers

[`init(Data)`](/documentation/LightweightCodeRequirements/InfoPlistHash/init(_:))

Match against a single Info.plist hash

[`init(from: any Decoder) throws`](/documentation/LightweightCodeRequirements/InfoPlistHash/init(from:))

Create a new instance by decoding from the given decoder

### Instance Methods

[`func encode(to: any Encoder) throws`](/documentation/LightweightCodeRequirements/InfoPlistHash/encode(to:))

Encodes this value into the given encoder

### Type Aliases

[`typealias DataType`](/documentation/LightweightCodeRequirements/InfoPlistHash/DataType)

[`typealias OutType`](/documentation/LightweightCodeRequirements/InfoPlistHash/OutType)

The type of this constraint: [`InfoPlistHash`](/documentation/LightweightCodeRequirements/InfoPlistHash).

### Type Methods

[`static func `in`(InfoPlistHash.DataType...) -> InfoPlistHash.OutType`](/documentation/LightweightCodeRequirements/InfoPlistHash/in(_:)-18amo)

Match against any of the Info.plist hashes in the provided list.

[`static func `in`([InfoPlistHash.DataType]) -> InfoPlistHash.OutType`](/documentation/LightweightCodeRequirements/InfoPlistHash/in(_:)-1rwy8)

Match against any of the Info.plist hashes in the provided list.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`OnDiskConstraint`](/documentation/LightweightCodeRequirements/OnDiskConstraint)

[`ProcessConstraint`](/documentation/LightweightCodeRequirements/ProcessConstraint)

[`Decodable`](/documentation/Swift/Decodable)

[`Encodable`](/documentation/Swift/Encodable)

[`LaunchConstraint`](/documentation/LightweightCodeRequirements/LaunchConstraint)

---

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)