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

# IsSIPProtected

A constraint that tests whether a code file or process is on a volume protected by System Integrity Protection (SIP).

```
struct IsSIPProtected
```

## Overview

When you use this constraint to test a running process, it tests whether the process’s main executable is SIP-protected.

## Topics

### Initializers

[`init()`](/documentation/LightweightCodeRequirements/IsSIPProtected/init())

Matches if the file is SIP protected.

[`init(Bool)`](/documentation/LightweightCodeRequirements/IsSIPProtected/init(_:))

Matches if the file is or isn’t SIP protected depending on the specified value.

[`init(from: any Decoder) throws`](/documentation/LightweightCodeRequirements/IsSIPProtected/init(from:))

Create a new instance by decoding from the given decoder

### Instance Methods

[`func encode(to: any Encoder) throws`](/documentation/LightweightCodeRequirements/IsSIPProtected/encode(to:))

Encodes this value into the given encoder

## Relationships

### Conforms To

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

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

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

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

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

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

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

---

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)