---
title: Build a workout app for Apple Watch
framework: healthkit
role: sampleCode
role_heading: Sample Code
path: healthkit/build-a-workout-app-for-apple-watch
---

# Build a workout app for Apple Watch

Create your own workout app, quickly and easily, with HealthKit and SwiftUI.

## Overview

Overview note: This sample code project is associated with WWDC21 session 10009: Build a workout app for Apple Watch. Configure the sample code project Before you run the sample code project in Xcode: Open the sample with the latest version of Xcode. Select the top-level project. For the three targets, select the correct team in the Signing & Capabilities pane (next to Team) to let Xcode automatically manage your provisioning profile. Make a note of the Bundle Identifier of the WatchKit App target. Open the Info.plist file of the WatchKit Extension target, and change the value of the NSExtension > NSExtensionAttributes > WKAppBundleIdentifier key to the bundle ID you noted in the previous step. Make a clean build and run the sample app on your device.

## See Also

### Sessions

- [Running workout sessions](healthkit/running-workout-sessions.md)
- [Building a multidevice workout app](healthkit/building-a-multidevice-workout-app.md)
- [Building a workout app for iPhone and iPad](healthkit/building-a-workout-app-for-iphone-and-ipad.md)
- [HKWorkoutSession](healthkit/hkworkoutsession.md)
- [HKWorkoutConfiguration](healthkit/hkworkoutconfiguration.md)
- [HKWorkoutSessionState](healthkit/hkworkoutsessionstate.md)
- [HKLiveWorkoutBuilder](healthkit/hkliveworkoutbuilder.md)
- [HKLiveWorkoutBuilderDelegate](healthkit/hkliveworkoutbuilderdelegate.md)
- [HKLiveWorkoutDataSource](healthkit/hkliveworkoutdatasource.md)
