---
title: ResourcesArchiver
framework: appmigrationkit
role: symbol
role_heading: Class
path: appmigrationkit/resourcesarchiver
---

# ResourcesArchiver

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

## Declaration

```swift
final class ResourcesArchiver
```

## Overview

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

- [appendItem(at:pathInArchive:)](appmigrationkit/resourcesarchiver/appenditem(at:pathinarchive:).md)

## See Also

### Exporting resources

- [exportResources(to:request:)](appmigrationkit/resourcesexportingwithoptions/exportresources(to:request:).md)
- [MigrationRequestWithOptions](appmigrationkit/migrationrequestwithoptions.md)
