One Logo Pool Ball
AppMigrationKit · IOS API REFERENCE

ResourcesArchiver

class · iOS 26.0+ · SDK 27.1

final class ResourcesArchiver

An object your app uses to archive resources during an export operation. > Important: This class handles task cancellation automatically by throwing cancellation errors up the stack if the migration system cancels the export. Don't catch the cancellation errors; doing so causes the system to kill the app extension.

Members (1)

method · iOS 26.0+

appendItem

TypeScript
appendItem(url: string, pathInArchive?: (string) | null): Promise<void>
Swift declaration
final func appendItem(at url: URL, pathInArchive: String? = nil) async throws

Sends a file to the archiver for export. - Parameters: - url: The URL of a file to export. If this value doesn't contain a path, the archiver infers a path based on the last path component of the URL. - pathInArchive: A path relative to the root URL to use when the receiving device imports this resource. The migration system uses this value as-is and performs no normalizations.

Skipped declarations

No declarations were skipped in this snapshot.

All AppMigrationKit types →