<!--
{
  "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/OnDiskCodeSigningFlags",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "LightweightCodeRequirements"
    ],
    "preciseIdentifier" : "s:27LightweightCodeRequirements06OnDiskB12SigningFlagsV"
  },
  "title" : "OnDiskCodeSigningFlags"
}
-->

# OnDiskCodeSigningFlags

A constraint that tests the code-signing flags of a code file on disk.

```
struct OnDiskCodeSigningFlags
```

## Topics

### Structures

[`struct ValueSet`](/documentation/LightweightCodeRequirements/OnDiskCodeSigningFlags/ValueSet)

Code signing flags that can be set on code on disk.

### Type Aliases

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

The basic input data type for this constraint: `OnDiskCodeSigningFlags.ValueSet`

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

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

### Type Methods

[`static func isSuperset(of: OnDiskCodeSigningFlags.DataType) -> OnDiskCodeSigningFlags.OutType`](/documentation/LightweightCodeRequirements/OnDiskCodeSigningFlags/isSuperset(of:))

Matches when the code signing flags on the file/slice are a superset of the specified flags.

## Relationships

### Conforms To

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

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

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

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

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

---

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)