<!--
{
  "availability" : [
    "iOS: 17.2.0 -",
    "iPadOS: 17.2.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ManagedAppDistribution",
  "identifier" : "/documentation/ManagedAppDistribution/ManagedAppDistributionError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "ManagedAppDistribution"
    ],
    "preciseIdentifier" : "s:22ManagedAppDistribution0abC5ErrorO"
  },
  "title" : "ManagedAppDistributionError"
}
-->

# ManagedAppDistributionError

Codes that identify errors in Managed App Distribution.

```
enum ManagedAppDistributionError
```

## Topics

### Creating an error object

### Inspecting errors

[`case deviceNotManaged`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/deviceNotManaged)

An error that indicates this device isn’t managed.

[`case networkError`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/networkError)

An error that indicates a network issue.

[`case unrecoverableError`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/unrecoverableError)

An error that is unspecified and unrecoverable.

[`case unsupportedPlatform`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/unsupportedPlatform)

An error that indicates the platform is unsupported.

### Providing error information

[`var description: String`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/description)

A localized description of the error.

[`var errorDescription: String?`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/errorDescription)

A brief description of the error.

[`var failureReason: String?`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/failureReason)

A detailed description of the error.

[`var recoveryOptions: [String]`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/recoveryOptions)

A set of possible recovery options to present.

[`var recoverySuggestion: String?`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/recoverySuggestion)

A suggestion for recovering from the error.

[`var localizedStringResource: LocalizedStringResource`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/localizedStringResource)

A set of localized error strings.

### Providing help information

[`var helpAnchor: String?`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/helpAnchor)

A link to help documentation.

### Recovering from errors

[`func attemptRecovery(optionIndex: Int) -> Bool`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/attemptRecovery(optionIndex:))

Attempt to recover from this error when someone selects the option at the given index.

[`func attemptRecovery(optionIndex: Int, resultHandler: (Bool) -> Void)`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/attemptRecovery(optionIndex:resultHandler:))

Attempt to recover from this error when someone selects the option at the given index.

### Enumeration Cases

[`case appNotManaged`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/appNotManaged)

An error that indicates that the calling app is not managed

[`case licenseNotFound`](/documentation/ManagedAppDistribution/ManagedAppDistributionError/licenseNotFound)

An error that indicates that a license wasn’t found for requested app.

## Relationships

### Conforms To

[`CustomLocalizedStringResourceConvertible`](/documentation/Foundation/CustomLocalizedStringResourceConvertible)

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

[`LocalizedError`](/documentation/Foundation/LocalizedError)

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

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

[`RecoverableError`](/documentation/Foundation/RecoverableError)

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

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

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

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

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

---

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)