<!--
{
  "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/attemptRecovery(optionIndex:resultHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ManagedAppDistribution"
    ],
    "preciseIdentifier" : "s:22ManagedAppDistribution0abC5ErrorO15attemptRecovery11optionIndex13resultHandlerySi_ySbctF"
  },
  "title" : "attemptRecovery(optionIndex:resultHandler:)"
}
-->

# attemptRecovery(optionIndex:resultHandler:)

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

```
func attemptRecovery(optionIndex recoveryOptionIndex: Int, resultHandler handler: @escaping (Bool) -> Void)
```

---

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)