---
title: "resolved(from:)"
framework: appintentstesting
role: symbol
role_heading: Instance Method
path: "appintentstesting/appentitydefinition/resolved(from:)-2fld0"
---

# resolved(from:)

Resolves an entity from an exported intent file through the entity type’s transferable conformance.

## Declaration

```swift
func resolved(from file: IntentFile) async throws -> AnyAppEntity
```

## Parameters

- `file`: The <doc://com.apple.documentation/documentation/appintents/intentfile> containing the exported entity data.

## Return Value

Return Value The resolved entity.

## Discussion

Discussion Use this to verify the import direction — that an IntentFile produced by AnyAppEntity/exported(as:)-swift.method (or constructed from test data) can be resolved back into an entity through the same pipeline used at runtime. note: If the entity type does not support the file’s content type. let file = try await entity.exported(as: .json) let resolved = try await coffeeOrderDef.resolved(from: file)
