<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppMigrationKit",
  "identifier" : "/documentation/AppMigrationKit/MigrationStatus/failure(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AppMigrationKit"
    ],
    "preciseIdentifier" : "s:15AppMigrationKit0B6StatusO7failureyACs5Error_pcACmF"
  },
  "title" : "MigrationStatus.failure(_:)"
}
-->

# MigrationStatus.failure(_:)

The migration failed with an error.

```
case failure(any Error)
```

## Discussion

Inspect the associated value to retrieve the <doc://com.apple.documentation/documentation/Swift/Error> that caused migration to fail.

---

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)