---
title: Building a workout app for iPhone and iPad
framework: healthkit
role: sampleCode
role_heading: Sample Code
path: sample-code/healthkit/building-a-workout-app-for-iphone-and-ipad
---

# Building a workout app for iPhone and iPad

Start a workout in iOS, control it from the Lock Screen with App Intents, and present the workout status with Live Activities.

## Overview

Overview note: This sample code project is associated with WWDC25 session 322: Track workouts with HealthKit on iPhone and iPad. Configure the sample code project To configure the sample code project, do the following: Open the sample with the latest version of Xcode. Set the developer team for all targets to let Xcode automatically manage the provisioning profile. For more information, see Preparing your app for distribution and Preparing your app for distribution.

## See Also

### Sessions

- [Running workout sessions](healthkit/running-workout-sessions.md)
- [Build a workout app for Apple Watch](healthkit/build-a-workout-app-for-apple-watch.md)
- [Building a multidevice workout app](healthkit/building-a-multidevice-workout-app.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)
