---
title: SecCodeSignatureFlags
framework: security
role: symbol
role_heading: Structure
path: security/seccodesignatureflags
---

# SecCodeSignatureFlags

Specify option flags that can be embedded in a code signature during signing and that govern the use of the signature.

## Declaration

```swift
struct SecCodeSignatureFlags
```

## Overview

Overview Some of these flags can be set through the codesign(1) command’s --options argument and some are set implicitly based on signing circumstances. The flags here appear as the value associated with the kSecCodeInfoFlags key in the signing information dictionary. See Signing Information Dictionary Keys.

## Topics

### Initializers

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

### Constants

- [host](security/seccodesignatureflags/host.md)
- [adhoc](security/seccodesignatureflags/adhoc.md)
- [forceHard](security/seccodesignatureflags/forcehard.md)
- [forceKill](security/seccodesignatureflags/forcekill.md)
- [forceExpiration](security/seccodesignatureflags/forceexpiration.md)
- [enforcement](security/seccodesignatureflags/enforcement.md)
- [libraryValidation](security/seccodesignatureflags/libraryvalidation.md)
- [restrict](security/seccodesignatureflags/restrict.md)
- [runtime](security/seccodesignatureflags/runtime.md)

### Type Properties

- [linkerSigned](security/seccodesignatureflags/linkersigned.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)
