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

# 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 isCodeSignatureRequiredForAllExecutableCode: OnDiskCodeSigningFlags.ValueSet
```

## Discussion

This flag may be present on any on disk signature. This flag only has effect on main executables.  This flag has no effect on iOS/watchOS/tvOS/visionOS or iOS apps on macOS.
All processes on iOS/watchOS/tvOS/visionOS and all iOS apps on macOS always require code signatures to be associated with all executable memory. On all platforms, entitlements provide
an exception to this policy to allow JIT.
This is equivalent to `CS_ENFORCEMENT` 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)