<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "Xcode: 26.0.0 -"
  ],
  "documentType" : "article",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/building-a-workout-app-for-iphone-and-ipad",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "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

> Note: This sample code project is associated with WWDC25 session 322:
> [Track workouts with HealthKit on iPhone and iPad](https://developer.apple.com/wwdc25/322/).

### Configure the sample code project

To configure the sample code project, do the following:

1. Open the sample with the latest version of Xcode.
2. Set the developer team for all targets to let Xcode automatically manage the provisioning profile. For more information, see [Set the bundle ID](doc://com.apple.documentation/documentation/Xcode/preparing-your-app-for-distribution) and [Assign the project to a team](doc://com.apple.documentation/documentation/Xcode/preparing-your-app-for-distribution).

---

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)