<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppMigrationKit",
  "identifier" : "/documentation/AppMigrationKit/ResourcesExportingWithOptions/exportResources(to:request:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppMigrationKit"
    ],
    "preciseIdentifier" : "s:15AppMigrationKit29ResourcesExportingWithOptionsP06exportD02to7requestyAA0D8ArchiverCn_AA0b7RequestfG0Vy0G4TypeQzGtYaKF"
  },
  "title" : "exportResources(to:request:)"
}
-->

# exportResources(to:request:)

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

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

## Parameters

`archiver`

An archiver to receive files from your app. Call [`appendItem(at:pathInArchive:)`](/documentation/AppMigrationKit/ResourcesArchiver/appendItem(at:pathInArchive:)) with each item to export.

`request`

A request object that describes the destination of the migration.

## Discussion

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

---

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)