---
title: errSecInvalidAttributeKey
framework: security
role: symbol
role_heading: Global Variable
path: security/errsecinvalidattributekey
---

# errSecInvalidAttributeKey

A key attribute is not valid.

## Declaration

```swift
var errSecInvalidAttributeKey: OSStatus { get }
```
