<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppMigrationKit",
  "identifier" : "/documentation/AppMigrationKit/AppMigrationTester/AppImportController/importResources(from:importRequest:progress:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppMigrationKit"
    ],
    "preciseIdentifier" : "s:15AppMigrationKit0aB6TesterC0A16ImportControllerC15importResources4from0G7Request8progressy10Foundation3URLV_AA0heJ0VSgSo10NSProgressCSgtYaKF"
  },
  "title" : "importResources(from:importRequest:progress:)"
}
-->

# importResources(from:importRequest:progress:)

Tells the migration extension to begin importing transportable resources into the app extension.

```
final func importResources(from extractedResourceURL: URL, importRequest: ResourcesImportRequest? = nil, progress: Progress? = nil) async throws
```

## Parameters

`extractedResourceURL`

A file URL pointing to a directory that contains the resources to import.

`importRequest`

An optional migration request instance to pass to the app extension’s import method. If this value is `nil`, the framework uses a default request. This value defaults to `nil`.

`progress`

An optional <doc://com.apple.documentation/documentation/Foundation/Progress> object the extension uses to report its progress back to the unit test. This value defaults to `nil`.

## Discussion

Clean your app state before starting an import test, since the app extension runs on a clean app state.
In particular, remove any files you previously wrote to the app container and ensure it’s empty.
This simulates how the extension normally runs during a migration.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)