---
title: "exportResources(to:request:)"
framework: appmigrationkit
role: symbol
role_heading: Instance Method
path: "appmigrationkit/resourcesexportingwithoptions/exportresources(to:request:)"
---

# exportResources(to:request:)

Exports resources from the app, in response to a request from the migration system.

## Declaration

```swift
func exportResources(to archiver: sending ResourcesArchiver, request: MigrationRequestWithOptions<Self.OptionsType>) async throws
```

## Parameters

- `archiver`: An archiver to receive files from your app. Call doc://AppMigrationKit/documentation/AppMigrationKit/ResourcesArchiver/appendItem(at:pathInArchive:) with each item to export.
- `request`: A request object that describes the destination of the migration.

## Discussion

Discussion Implement this method in your app extension to export files from your app to the destination device.

## See Also

### Exporting resources

- [ResourcesArchiver](appmigrationkit/resourcesarchiver.md)
- [MigrationRequestWithOptions](appmigrationkit/migrationrequestwithoptions.md)
