<!--
{
  "documentType" : "article",
  "framework" : "Updates",
  "identifier" : "/documentation/Updates/LightweightCodeRequirements",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "LightweightCodeRequirements updates"
}
-->

# LightweightCodeRequirements updates

Learn about important changes to LightweightCodeRequirements.

## Overview

Browse notable changes in <doc://com.apple.documentation/documentation/LightweightCodeRequirements>.

## June 2024

### General

- Use fields on <doc://com.apple.documentation/documentation/LightweightCodeRequirements/ValidationResult> to find out whether a code file has a valid signature, and whether the signature satisfies your lightweight code requirement.
- Combine multiple <doc://com.apple.documentation/documentation/LightweightCodeRequirements/EntitlementsQuery> constraints using the `anyOf` and `allOf` operators.
- Use the <doc://com.apple.documentation/documentation/Swift/Equatable> protocol to compare instances of <doc://com.apple.documentation/documentation/LightweightCodeRequirements/LaunchCodeRequirement>, <doc://com.apple.documentation/documentation/LightweightCodeRequirements/ProcessCodeRequirement>, and <doc://com.apple.documentation/documentation/LightweightCodeRequirements/OnDiskCodeRequirement>.
- Use <doc://com.apple.documentation/documentation/LightweightCodeRequirements/SecCodeCheckValidityWithOnDiskRequirement(code:flags:requirement:)> to test a <doc://com.apple.documentation/documentation/Security/SecCode> instance using an on-disk code requirement.
- Use <doc://com.apple.documentation/documentation/LightweightCodeRequirements/SecCodeCheckValidityWithProcessRequirement(code:flags:requirement:)> to test a <doc://com.apple.documentation/documentation/Security/SecCode> instance using a process code requirement.

---

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)