This guide shows you how to:

- Set up your development environment to work with Augmented Faces
- Apply 2D textures and attach 3D objects to detected faces

## Prerequisites

- [Xcode](https://developer.apple.com/xcode/) version 13.0 or later
- [Cocoapods](https://cocoapods.org/) 1.4.0 or later if using Cocoapods
- An ARKit-compatible Apple device running iOS 12.0 or later (deployment target of iOS 12.0 or later required)

> [!NOTE]
> **Note:** Beginning with ARCore 1.12, all ARKit-compatible devices are supported.

## Using Augmented Faces

The following steps use the [Augmented Faces sample app](https://github.com/google-ar/arcore-ios-sdk/tree/master/Examples/AugmentedFacesExample) to show you the critical tasks for configuring and building an app with Augmented Faces capabilities.

### Get the Augmented Faces sample app

1. Clone or download the latest [ARCore SDK for iOS](https://github.com/google-ar/arcore-ios-sdk/releases) from GitHub to obtain the sample app code.
2. Open a Terminal or Finder window and navigate to the folder where you cloned or downloaded the SDK.
3. You can find the sample app code in `/Examples/AugmentedFacesExample`.

### Run `pod install`

The AugmentedFacesSample app ships with a Podfile preconfigured with the ARCore SDK and iOS versions that you'll need. To install these dependencies:

1. Open a Terminal window and run `pod install` from the folder where the Xcode project exists. This generates an `*.xcworkspace` file that you'll use later to build and run the app.

### Build and run the app

1. Open the `.xcworkspace` (not the `.xcodeproj`) file for the project in Xcode.
2. Open the target's general settings and change the bundle identifier.
3. Hit Cmd+R or click Run. Use a physical device, not the simulator, to work with Augmented Faces. The device should be connected to your development machine via USB.

> [!NOTE]
> **Note:** Since the simulator does not have a camera, apps using Augmented Faces must be run on a physical device.

### Try out the sample app

1. Build and run the sample app from the `.xcworkspace` file to launch it on your device.
2. If prompted, grant camera permissions to the app. ARCore then starts detecting faces visible in the camera. Currently, only once face is detected at a time.
3. Make sure that the camera is facing the user.

## Next steps

- See the [Augmented Faces Developer Guide for iOS](https://developers.google.com/ar/develop/ios/augmented-faces/developer-guide) to explore the sample app code and learn more about working with Augmented Faces in your own apps.
- Review the [ARCore iOS API Reference](https://developers.google.com/ar/reference/ios).
- Watch the following video on how to get started with Augmented Faces on iOS:

[Video](https://www.youtube.com/watch?v=QAqOTaCCD9M)