Contents

ResourcesExportingWithOptions

A protocol for exporting transportable resources in an archive format.

Declaration

protocol ResourcesExportingWithOptions : AppMigrationExtension

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

Declaring resource properties

Declaring export options

See Also

Export operations