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

# isHardenedRuntimeEnforced

Flag indicating that the process has enabled the Hardened Runtime

```
static let isHardenedRuntimeEnforced: OnDiskCodeSigningFlags.ValueSet
```

## Discussion

This flag may be present on any on disk signature. This flag only has effect on main executables. This flag only has effect on macOS.
On iOS/watchOS/tvOS/visionOS most of the same policies are enforced regardless of the state of this flag.
This is equivalent to `CS_RUNTIME` in C APIs.

---

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)