<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceCheck",
  "identifier" : "/documentation/DeviceCheck/DCError-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "DeviceCheck"
    ],
    "preciseIdentifier" : "s:SC7DCErrorLeV"
  },
  "title" : "DCError"
}
-->

# DCError

A type that indicates when DeviceCheck encounters an error.

```
struct DCError
```

## Topics

### Errors

[`featureUnsupported`](/documentation/DeviceCheck/DCError-swift.struct/featureUnsupported)

DeviceCheck is not available on this device.

[`invalidInput`](/documentation/DeviceCheck/DCError-swift.struct/invalidInput)

An error code that indicates when your app provides data that isn’t formatted correctly.

[`invalidKey`](/documentation/DeviceCheck/DCError-swift.struct/invalidKey)

An error caused by a failed attempt to use the App Attest key.

[`serverUnavailable`](/documentation/DeviceCheck/DCError-swift.struct/serverUnavailable)

An error that indicates a failed attempt to contact the App Attest service during an attestation.

[`unknownSystemFailure`](/documentation/DeviceCheck/DCError-swift.struct/unknownSystemFailure)

A failure has occurred, such as the failure to generate a token.

[`DCError.Code`](/documentation/DeviceCheck/DCError-swift.struct/Code)

DeviceCheck error codes.

### Error information

[`errorDomain`](/documentation/DeviceCheck/DCError-swift.struct/errorDomain)

The error domain for errors associated with DeviceCheck APIs.



---

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)