---
title: ResourcesExportingWithOptions
framework: appmigrationkit
role: symbol
role_heading: Protocol
path: appmigrationkit/resourcesexportingwithoptions
---

# ResourcesExportingWithOptions

A protocol for exporting transportable resources in an archive format.

## Declaration

```swift
protocol ResourcesExportingWithOptions : AppMigrationExtension
```

## Overview

Overview Conform to this protocol in your app extension to export transportable resources: files on disk that can you can copy as-is to the destination device without converting to an intermediate transport format. Only use this approach when your app’s files require no changes before exporting. If you convert files locally to an intermediate transport format, export might fail if there’s not enough free space on the file system. During export, the system prevents launching your app and any of its extensions. This ensures the migration system has exclusive access to the app contents. The export process may also archive, compress, or de-duplicate the files during transport. Make continuous progress while exporting by repeatedly calling the archiver’s appendItem(at:pathInArchive:) method as each resource is ready. If the framework determines that your extension is hung, it may terminate the extension without migrating the app’s data to the destination.

## Topics

### Exporting resources

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

### Declaring resource properties

- [resourcesSizeEstimate](appmigrationkit/resourcesexportingwithoptions/resourcessizeestimate.md)
- [resourcesVersion](appmigrationkit/resourcesexportingwithoptions/resourcesversion.md)
- [resourcesCompressible](appmigrationkit/resourcesexportingwithoptions/resourcescompressible.md)

### Declaring export options

- [OptionsType](appmigrationkit/resourcesexportingwithoptions/optionstype.md)

## Relationships

### Inherits From

- [AppExtension](extensionfoundation/appextension.md)
- [AppMigrationExtension](appmigrationkit/appmigrationextension.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

### Inherited By

- [ResourcesExporting](appmigrationkit/resourcesexporting.md)

## See Also

### Export operations

- [ResourcesExporting](appmigrationkit/resourcesexporting.md)
