Creates a resources import request instance for use in a unit test.
You only use this initializer when creating unit tests that call ``AppMigrationTester/AppImportController/importResources(from:importRequest:progress:)``.
Don't use it in your app migration extension.
- Parameters:
- sourceAppIdentifier: The application that exported the content.
- sourceVersion: The data format version provided by the source application.
get · iOS 26.0+
sourceAppIdentifier
TypeScript
get sourceAppIdentifier(): MigrationAppIdentifier
Swift declaration
let sourceAppIdentifier: MigrationAppIdentifier
The application that exported the content.
Use this identifier to validate that the imported data comes from a trusted source.
get · iOS 26.0+
sourceVersion
TypeScript
get sourceVersion(): string
Swift declaration
let sourceVersion: String
The data format version provided by the source application.
Use this value to distinguish between potentially incompatible versions of the app’s data.