---
title: "makeReference(identifier:)"
framework: appintentstesting
role: symbol
role_heading: Instance Method
path: "appintentstesting/appentitydefinition/makereference(identifier:)"
---

# makeReference(identifier:)

Creates an app entity instance of the given entity type.

## Declaration

```swift
func makeReference(identifier: String) -> AnyAppEntity
```

## Mentioned in

Testing your App Intents code

## Discussion

Discussion let entityDefinition: AppEntityDefinition!

let entityRef = entityDefinition.reference(identifier: "unique-id-123") ``

- Parameter identifier: The entity instance's unique identifier.
