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

# OnDiskCodeSigningFlags.ValueSet

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

```
struct ValueSet
```

## Topics

### Type Properties

[`static let isAdhocSigned: OnDiskCodeSigningFlags.ValueSet`](/documentation/LightweightCodeRequirements/OnDiskCodeSigningFlags/ValueSet/isAdhocSigned)

The code is adhoc signed i.e. it contains a code directory and page hashes but no CMS signature.

[`static let isCertificateExpirationEnforced: OnDiskCodeSigningFlags.ValueSet`](/documentation/LightweightCodeRequirements/OnDiskCodeSigningFlags/ValueSet/isCertificateExpirationEnforced)

Flag indicating that the signature on this code should be treated as invalid if the certificate it was signed with expired.

[`static let isCodeSignatureRequiredForAllExecutableCode: OnDiskCodeSigningFlags.ValueSet`](/documentation/LightweightCodeRequirements/OnDiskCodeSigningFlags/ValueSet/isCodeSignatureRequiredForAllExecutableCode)

Flag indicating that the process should not allow code to execute from memory if that memory is not associated with a code signature.

[`static let isDynamicLinkerPolicyHardened: OnDiskCodeSigningFlags.ValueSet`](/documentation/LightweightCodeRequirements/OnDiskCodeSigningFlags/ValueSet/isDynamicLinkerPolicyHardened)

Flag indicating that the process should get hardened dynamic linker policies.

[`static let isHardenedRuntimeEnforced: OnDiskCodeSigningFlags.ValueSet`](/documentation/LightweightCodeRequirements/OnDiskCodeSigningFlags/ValueSet/isHardenedRuntimeEnforced)

Flag indicating that the process has enabled the Hardened Runtime

[`static let isLibraryValidationRequired: OnDiskCodeSigningFlags.ValueSet`](/documentation/LightweightCodeRequirements/OnDiskCodeSigningFlags/ValueSet/isLibraryValidationRequired)

Flag indicating that the process should enforce Library Validation.

[`static let isSignedByLinker: OnDiskCodeSigningFlags.ValueSet`](/documentation/LightweightCodeRequirements/OnDiskCodeSigningFlags/ValueSet/isSignedByLinker)

Flag indicating that the code was signed by the linker and not an invocation of codesign.

[`static let signalsBusErrorOnCodeSigningFailure: OnDiskCodeSigningFlags.ValueSet`](/documentation/LightweightCodeRequirements/OnDiskCodeSigningFlags/ValueSet/signalsBusErrorOnCodeSigningFailure)

Code signing failures on page-in should be rejected as SIGBUS errors.

[`static let terminatesOnCodeSigningFailure: OnDiskCodeSigningFlags.ValueSet`](/documentation/LightweightCodeRequirements/OnDiskCodeSigningFlags/ValueSet/terminatesOnCodeSigningFailure)

Code signing failures on page in should cause the process to be terminated.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

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

---

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)