---
title: "init(sourceAppIdentifier:sourceVersion:)"
framework: appmigrationkit
role: symbol
role_heading: Initializer
path: "appmigrationkit/resourcesimportrequest/init(sourceappidentifier:sourceversion:)"
---

# init(sourceAppIdentifier:sourceVersion:)

Creates a resources import request instance for use in a unit test.

## Declaration

```swift
init(sourceAppIdentifier: MigrationAppIdentifier, sourceVersion: String)
```

## Parameters

- `sourceAppIdentifier`: The application that exported the content.
- `sourceVersion`: The data format version provided by the source application.

## Discussion

Discussion You only use this initializer when creating unit tests that call importResources(from:importRequest:progress:). Don’t use it in your app migration extension.
