<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntentsTesting",
  "identifier" : "/documentation/AppIntentsTesting/AppEntityDefinition/resolved(from:)-2fld0",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents Testing",
      "AppIntentsTesting"
    ],
    "preciseIdentifier" : "s:17AppIntentsTesting0A16EntityDefinitionV8resolved4fromAA03AnyaD0V0aB010IntentFileV_tYaKF"
  },
  "title" : "resolved(from:)"
}
-->

# resolved(from:)

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

```
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

The resolved entity.

## Discussion

Use this to verify the import direction — that an <doc://com.apple.documentation/documentation/AppIntents/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.

> Throws: If the entity type does not support the file’s content type.

```swift
let file = try await entity.exported(as: .json)
let resolved = try await coffeeOrderDef.resolved(from: file)
```

---

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)