<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppMigrationKit",
  "identifier" : "/documentation/AppMigrationKit/ResourcesArchiver",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AppMigrationKit"
    ],
    "preciseIdentifier" : "s:15AppMigrationKit17ResourcesArchiverC"
  },
  "title" : "ResourcesArchiver"
}
-->

# ResourcesArchiver

An object your app uses to archive resources during an export operation.

```
final class ResourcesArchiver
```

## Overview> Important: This class handles task cancellation automatically by throwing cancellation errors up the stack if the migration system cancels the export. Don’t catch the cancellation errors; doing so causes the system to kill the app extension.

## Topics

### Appending resources

[`func appendItem(at: URL, pathInArchive: String?) async throws`](/documentation/AppMigrationKit/ResourcesArchiver/appendItem(at:pathInArchive:))

Sends a file to the archiver for export.



---

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)