---
title: "exportResources(request:progress:)"
framework: appmigrationkit
role: symbol
role_heading: Instance Method
path: "appmigrationkit/appmigrationtester/appexportcontroller/exportresources(request:progress:)-5mw8u"
---

# exportResources(request:progress:)

Tells the migration extension to begin exporting its resources.

## Declaration

```swift
final func exportResources(request: MigrationRequest? = nil, progress: Progress? = nil) async throws -> AppMigrationTester.ResourcesExportResult
```

## Parameters

- `request`: An optional migration request instance to pass to the app extension’s export method. This value defaults to nil.
- `progress`: An optional doc://com.apple.documentation/documentation/Foundation/Progress object the extension uses to report its progress back to the unit test. This value defaults to nil.

## Return Value

Return Value The results of the export.

## See Also

### Testing resource export

- [exportResources(request:progress:)](appmigrationkit/appmigrationtester/appexportcontroller/exportresources(request:progress:)-15m4v.md)
- [AppMigrationTester.ResourcesExportResult](appmigrationkit/appmigrationtester/resourcesexportresult.md)
