---
title: SecCodeStatus
framework: security
role: symbol
role_heading: Structure
path: security/seccodestatus
---

# SecCodeStatus

Operational flags attached by code signing services to running code.

## Declaration

```swift
struct SecCodeStatus
```

## Overview

Overview These flags are maintained by the code’s host, and can be read by anyone. Running code may change its own flags, and root may change anyone’s flags. However, each of these flags can change in only one direction and never back, for the lifetime of the code. Not even root can violate this restriction. All of the bits in the SecCodeStatus enumeration are reserved by Apple. If you set any bits not defined here, the behavior is undefined.

## Topics

### Initializers

- [init(rawValue:)](security/seccodestatus/init(rawvalue:).md)

### Constants

- [valid](security/seccodestatus/valid.md)
- [hard](security/seccodestatus/hard.md)
- [kill](security/seccodestatus/kill.md)
- [debugged](security/seccodestatus/debugged.md)
- [platform](security/seccodestatus/platform.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)
