One Logo Pool Ball
AppMigrationKit · IOS API REFERENCE

AppMigrationTester

class · iOS 26.0+ · SDK 27.1

actor AppMigrationTester

A test-only type your app uses to test app migration extensions. Use this type in unit tests that your containing app hosts. Calling the tester from your unit tests allows you to communicate with your app migration extension to valdiate your migration code. In your tests, create an instance of `AppMigrationTester`, then access its ``exportController`` and ``importController`` properties to exercise export and import functionality, respectively. > Warning: Use `AppMigrationTester` only in unit tests, not in production code. The tester doesn't operate in a production environment.

Members (4)

get · iOS 26.0+

unownedExecutor

TypeScript
get unownedExecutor(): SDKHandle
Swift declaration
nonisolated final var unownedExecutor: UnownedSerialExecutor { get }

Retrieve the executor for this actor as an optimized, unowned reference. This property must always evaluate to the same executor for a given actor instance, and holding on to the actor must keep the executor alive. This property will be implicitly accessed when work needs to be scheduled onto this actor. These accesses may be merged, eliminated, and rearranged with other work, and they may even be introduced when not strictly required. Visible side effects are therefore strongly discouraged within this property. - SeeAlso: ``SerialExecutor`` - SeeAlso: ``TaskExecutor``

get · iOS 26.0+

exportController

TypeScript
get exportController(): Promise<AppMigrationTester_AppExportController>
Swift declaration
var exportController: AppMigrationTester.AppExportController { get async throws }

An instance of the controller object you use to test your export code.

get · iOS 26.0+

importController

TypeScript
get importController(): Promise<AppMigrationTester_AppImportController>
Swift declaration
var importController: AppMigrationTester.AppImportController { get async throws }

An instance of the controller object you use to test your import code.

init · iOS 26.0+

init

TypeScript
static init(platform: MigrationPlatform): Promise<AppMigrationTester>
Swift declaration
init(platform: MigrationPlatform) async throws

Creates a tester instance for migrating to or from the specified platform. - Parameter platform: The platform to test migration to or from.

Skipped declarations

No declarations were skipped in this snapshot.

All AppMigrationKit types →